Comparing version 0.8.2 to 0.8.3
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 0.8.3 | ||
* Fix Preact `useEffect` re-render issue (by Maksim Karelov). | ||
## 0.8.2 | ||
@@ -5,0 +8,0 @@ * Fix React `useEffect` re-render issue (by @sHooKDT). |
{ | ||
"name": "storeon", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"description": "Tiny (173 bytes) event-based Redux-like state manager for React and Preact", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -5,2 +5,5 @@ var hooks = require('preact/hooks') | ||
var useIsomorphicLayoutEffect = | ||
typeof window !== 'undefined' ? hooks.useLayoutEffect : hooks.useEffect | ||
module.exports = function () { | ||
@@ -12,3 +15,3 @@ var keys = [].slice.call(arguments) | ||
hooks.useEffect(function () { | ||
useIsomorphicLayoutEffect(function () { | ||
return store.on('@changed', function (_, changed) { | ||
@@ -15,0 +18,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
26389
439