react-singleton-hook
Advanced tools
Comparing version 2.0.25 to 2.0.27
{ | ||
"name": "react-singleton-hook", | ||
"version": "2.0.25", | ||
"version": "2.0.27", | ||
"description": "Share custom hook state across all components", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -97,3 +97,3 @@ React Singleton Hook | ||
### imperatively read hook state for non-react code | ||
#### imperatively read hook state for non-react code | ||
```javascript | ||
@@ -118,3 +118,3 @@ import { useState } from 'react'; | ||
### use react-redux (or any other context) inside singletonHook | ||
#### use react-redux (or any other context) inside singletonHook | ||
To use react-redux or any other context-based functionality, singleton hooks should be mounted under provider in your app. | ||
@@ -161,3 +161,3 @@ To do that, import `SingletonHooksContainer` from `react-singleton-hook` and mount anywhere in you app. | ||
### top-level components updated before low-level components | ||
#### top-level components updated before low-level components | ||
@@ -164,0 +164,0 @@ ```javascript |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36582