We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6067e94 commit 1e5d4aaCopy full SHA for 1e5d4aa
src/2n8.ts
@@ -65,13 +65,10 @@ export function createStore<Store extends TwoAndEight>(
65
66
const fieldNames = [...getterNames, ...stateNames] as (keyof State<Store>)[]
67
68
- for (const field of fieldNames) {
69
- storeCache[field] = structuredClone(store[field])
70
- }
71
-
72
const subscribers = {} as Record<keyof State<Store>, Set<() => void>>
73
74
for (const field of fieldNames) {
+ storeCache[field] = structuredClone(store[field])
75
subscribers[field] = new Set<() => void>()
76
}
77
0 commit comments