diff --git a/packages/coaction-zustand/src/index.ts b/packages/coaction-zustand/src/index.ts index fee37f2..4ec5c27 100644 --- a/packages/coaction-zustand/src/index.ts +++ b/packages/coaction-zustand/src/index.ts @@ -17,6 +17,7 @@ export const bindZustand = ((initializer: StateCreator) => let isCoactionUpdated = false; internal.rootState = zustandStore.getState() as object; coactionStore = store; + // TODO: check Slice Zustand store zustandStore.subscribe(() => { if (!isCoactionUpdated) { internal.rootState = zustandStore.getState() as object;