1.6.3 • Published 3 years ago

@sensenet/hooks-react v1.6.3

Weekly downloads
35
License
GPL-2.0
Repository
-
Last release
3 years ago

@sensenet/hooks-react

sensenet related logic as React hooks for reusability.

NPM version NPM downloads License: GPL v2

Install

# Yarn
yarn add @sensenet/hooks-react

# NPM
npm install @sensenet/hooks-react

Usage

You can use the custom hooks in a similar way as the build-in React hooks, respecting the Rules of Hooks.

Custom contexts and Providers

  • CurrentAncestors and CurrentAncestorsProvider
  • CurrentChildren and CurrentChildrenProvider
  • CurrentContent and CurrentContentProvider
  • InjectorContext
  • LoadSettingsContext and LoadSettingsContextProvider
  • LoggerContext and LoggerContextProvider
  • RepositoryContext
  • SessionContext and SessionContextProvider

Custom hooks

  • useDownload
  • useInjector
  • useLogger
  • useRepositoryEvents
  • useRepository
  • useSession
  • useVersionInfo
  • useWopi
1.6.3

3 years ago

1.6.2

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago