Skip to content

Commit 102ac70

Browse files
fix: bump version to 2.1.5-beta & debugging
1 parent 97c38fa commit 102ac70

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-shared-states",
3-
"version": "2.1.4-beta",
3+
"version": "2.1.5-beta",
44
"type": "module",
55
"description": "Global state made as simple as useState, with zero config, built-in async caching, and automatic scoping.",
66
"keywords": [

src/SharedValuesManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ export class SharedValuesManager<T> {
152152
useEffect(() => {
153153
return () => {
154154
unsub?.();
155-
log(`[${SharedValuesManager.prefix(key, prefix)}]`, "unmount effect");
155+
/*log(`[${SharedValuesManager.prefix(key, prefix)}]`, "unmount effect");
156156
const entry = this.get(key, prefix);
157157
if (entry && entry.listeners?.length === 0) {
158158
this.clear(key, prefix);
159-
}
159+
}*/
160160
}
161161
}, [key, prefix]);
162162
}

0 commit comments

Comments
 (0)