Skip to content

Connect Wallet button silently fails due to provider ordering in wallet-provider.tsx #9

@Adeyemir

Description

@Adeyemir

The "Connect Wallet" button does nothing — no MetaMask popup, no errors, no network requests.

Two issues in components/wallet/wallet-provider.tsx:

  1. Provider ordering is reversedWagmiProvider wraps QueryClientProvider, but wagmi v2 requires the opposite. This causes all wagmi hooks to silently fail.

  2. Singleton QueryClient breaks Next.js App Router SSR and causes hydration mismatches.

Fix: Swap the provider order and replace the singleton with useState(() => new QueryClient({...})).

After patching, the wallet connects, and USDC payments work correctly on Arc Testnet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions