Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Dynamically importing WalletModalProvider will cause entire app to rerender #346

@jordaaash

Description

@jordaaash

const ReactUIWalletModalProviderDynamic = dynamic(
async () =>
(await import("@solana/wallet-adapter-react-ui")).WalletModalProvider,
{ ssr: false }
);

WalletModalProvider won't change from server side to client side rendering. Instead the WalletMultiButton or other UI components that would change should be marked dynamic.

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