We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8db389 commit 77167dcCopy full SHA for 77167dc
packages/react/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@web3-onboard/react",
3
- "version": "2.2.2-alpha.2",
+ "version": "2.2.2-alpha.3",
4
"description": "Collection of React Hooks for web3-onboard",
5
"repository": "blocknative/web3-onboard",
6
"module": "dist/index.js",
packages/react/src/index.ts
@@ -51,7 +51,8 @@ const useAppState: {
51
return stateKey ? snapshot[stateKey] : snapshot
52
}, [stateKey])
53
54
- return useSyncExternalStore(subscribe, getSnapshot)
+ const getServerSnapshot = () => get() || getSnapshot;
55
+ return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
56
}
57
58
export const useConnectWallet = (): [
0 commit comments