@nanostores/preact
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -6,4 +6,9 @@ import { useState, useEffect } from 'preact/hooks' | ||
let [, forceRender] = useState({}) | ||
let [valueBeforeEffect] = useState(store.get()) | ||
useEffect(() => { | ||
valueBeforeEffect !== store.get() && forceRender({}) | ||
}, []) | ||
useEffect(() => { | ||
let batching, timer, unlisten | ||
@@ -10,0 +15,0 @@ let rerender = () => { |
{ | ||
"name": "@nanostores/preact", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Preact integration for Nano Stores, a tiny state manager with many atomic tree-shakable stores", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
5075
87