diff --git a/packages/use-ask/src/create-ask.ts b/packages/use-ask/src/create-ask.ts index 4f3d548..e4c2a6a 100644 --- a/packages/use-ask/src/create-ask.ts +++ b/packages/use-ask/src/create-ask.ts @@ -14,5 +14,5 @@ export const createAsk = ( ): CreateAskReturn => { const store = new AskStore(initialPayload) - return [store, () => useSyncExternalStore(store.subscribe, store.getSnapshot)] + return [store, () => useSyncExternalStore(store.subscribe, store.getSnapshot, store.getSnapshot)] }