Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/ui-config/wagmiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ const connectors = narvalConnector ? [...(baseConnectors ?? []), narvalConnector
const prodConfig = createConfig({
...prodCkConfig,
connectors,
// Next.js SSR mode: run wagmi's reconnect once on mount (guarded) instead of
// on every render. Without this, WagmiProvider re-fires reconnect() on each
// render, ping-ponging account status and re-rendering the tree on navigation.
// Auto-reconnect for returning wallets is preserved.
ssr: true,
});

const isCypressEnabled = process.env.NEXT_PUBLIC_IS_CYPRESS_ENABLED === 'true';
Expand Down
Loading