nanostores
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -16,4 +16,8 @@ let effects = 0 | ||
let endEffect = startEffect() | ||
let result = await cb() | ||
endEffect() | ||
let result | ||
try { | ||
result = await cb() | ||
} finally { | ||
endEffect() | ||
} | ||
return result | ||
@@ -20,0 +24,0 @@ } |
{ | ||
"name": "nanostores", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "A tiny (172 bytes) state manager for React/Preact/Vue/Svelte with many atomic tree-shakable stores", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -119,6 +119,6 @@ # Nano Stores | ||
Stores have two modes: **active** and **disabled**. From the beginning, | ||
the store is in disabled mode and does not keep value. On the first subscriber, | ||
the store will call the initializer and will move to active mode. | ||
One second after unsubscribing of the last listener, the store will call | ||
the destructor. | ||
the store is in disabled mode and does not keep value. On the first call | ||
of `store.listen` or `store.subscribe`, the store will call the initializer | ||
and will move to active mode. One second after unsubscribing | ||
of the last listener, the store will call the destructor. | ||
@@ -125,0 +125,0 @@ The only way to get store’s value is to subscribe to store’s changes: |
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
39359
911