Skip to content

Commit 226a0f2

Browse files
fix: bump version to 2.1.6-beta & debugging
1 parent 102ac70 commit 226a0f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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.5-beta",
3+
"version": "2.1.6-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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,13 @@ 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
}
161-
}, [key, prefix]);
161+
}, []);
162162
}
163163
}
164164

0 commit comments

Comments
 (0)