Skip to content

React SDK: Lazy-load DynamicWalletProvider and FarcasterProvider to reduce bundle size#1587

Open
jmderby wants to merge 2 commits intomainfrom
jonathan/react-ui-reduce-bundle-size-quick-win
Open

React SDK: Lazy-load DynamicWalletProvider and FarcasterProvider to reduce bundle size#1587
jmderby wants to merge 2 commits intomainfrom
jonathan/react-ui-reduce-bundle-size-quick-win

Conversation

@jmderby
Copy link
Contributor

@jmderby jmderby commented Feb 18, 2026

Description

  • Lazy-load DynamicWalletProvider in CrossmintAuthProvider@dynamic-labs/ethereum, @dynamic-labs/solana,
    @dynamic-labs/sui, and @dynamic-labs/sdk-react-core are now deferred behind React.lazy() and only loaded when
    loginMethods includes a web3* method
  • Lazy-load FarcasterProvider and FarcasterSignIn in AuthForm@farcaster/auth-kit is now deferred and
    only loaded when loginMethods includes farcaster
  • Follows the same pattern already used in EmbeddedCheckoutV3IFrame for CryptoWalletConnectionHandler

Motivation

Crossmint auth is primarily used in demos and staging apps. Consumers using other packages shouldn't pay the cost of loading the full auth dependency tree (Dynamic Labs, Farcaster) when they don't use those features.

Test plan

  • tested app
  • tested login methods

Package updates

@crossmint/client-sdk-react-ui

@changeset-bot
Copy link

changeset-bot bot commented Feb 18, 2026

🦋 Changeset detected

Latest commit: 50687a4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@crossmint/client-sdk-react-ui Patch
@crossmint/auth-ssr-nextjs-demo Patch
@crossmint/client-sdk-nextjs-starter Patch
@crossmint/wallets-quickstart-devkit Patch
@crossmint/client-sdk-smart-wallet-next-starter Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@github-actions
Copy link
Contributor

github-actions bot commented Feb 18, 2026

🔥 Smoke Test Results

⚠️ Test results file not found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments