diff --git a/packages/react/package.json b/packages/react/package.json index 1c026abb1..608152b83 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/react", - "version": "2.8.0-alpha.1", + "version": "2.8.0-alpha.2", "description": "A collection of React hooks for integrating Web3-Onboard in to React and Next.js projects. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", diff --git a/packages/react/src/hooks/useAppState.ts b/packages/react/src/hooks/useAppState.ts index 6dc78bc03..8ec393292 100644 --- a/packages/react/src/hooks/useAppState.ts +++ b/packages/react/src/hooks/useAppState.ts @@ -28,6 +28,6 @@ export const useAppState: { return stateKey ? snapshot[stateKey] : snapshot }, [stateKey]) - const getServerSnapshot = () => get() || getSnapshot + const getServerSnapshot = () => getSnapshot() return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) }