Skip to content

Commit

Permalink
fix(create-ask): add server snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
junwen-k committed Jun 15, 2024
1 parent b6935d0 commit f31ff8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/use-ask/src/create-ask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ export const createAsk = <P, TData = unknown, TReason = unknown>(
): CreateAskReturn<P, TData, TReason> => {
const store = new AskStore<P, TData, TReason>(initialPayload)

return [store, () => useSyncExternalStore(store.subscribe, store.getSnapshot)]
return [store, () => useSyncExternalStore(store.subscribe, store.getSnapshot, store.getSnapshot)]
}

0 comments on commit f31ff8e

Please sign in to comment.