1.6.3 • Published 2 years ago

@sensenet/hooks-react v1.6.3

Weekly downloads
35
License
GPL-2.0
Repository
-
Last release
2 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

2 years ago

1.6.2

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.5

3 years ago

1.4.4

3 years ago

1.4.3

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago