Comparing version 0.8.1 to 0.8.2
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 0.8.2 | ||
* Fix React `useEffect` re-render issue (by @sHooKDT). | ||
## 0.8.1 | ||
@@ -5,0 +8,0 @@ * Fix TypeScript definitions (by Eugeny Schibrikov). |
{ | ||
"name": "storeon", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "Tiny (173 bytes) event-based Redux-like state manager for React and Preact", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -5,2 +5,5 @@ var React = require('react') | ||
var useIsomorphicLayoutEffect = | ||
typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect | ||
/** | ||
@@ -31,3 +34,3 @@ * Hook to use Storeon in functional React component. | ||
React.useEffect(function () { | ||
useIsomorphicLayoutEffect(function () { | ||
return store.on('@changed', function (_, changed) { | ||
@@ -34,0 +37,0 @@ var changesInKeys = keys.some(function (key) { |
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
26200
437