Skip to content

Commit 5bd088b

Browse files
committed
Merge in latest from develop
2 parents dc78b96 + 6a78d75 commit 5bd088b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ const useAppState: {
5151
return stateKey ? snapshot[stateKey] : snapshot
5252
}, [stateKey])
5353

54-
return useSyncExternalStore(subscribe, getSnapshot)
54+
const getServerSnapshot = () => get() || getSnapshot;
55+
return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
5556
}
5657

5758
export const useConnectWallet = (): [

0 commit comments

Comments
 (0)