Skip to content

Commit 9d26313

Browse files
committed
fixes server-rendered getServerSnapshot requirement: tweak
1 parent f11b58d commit 9d26313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fast-context-generic/src/createFastContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default function createFastContext<Store>(initialState: Store) {
5858
const state = useSyncExternalStore(
5959
store.subscribe,
6060
() => selector(store.get()),
61-
() => selector(store.get()),
61+
() => selector(initialState),
6262
);
6363

6464
return [state, store.set];

0 commit comments

Comments
 (0)