Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: tree shake chain and account modals #2126

Closed
wants to merge 1 commit into from

Conversation

magiziz
Copy link
Contributor

@magiziz magiziz commented Aug 1, 2024

Changes

Applied tree shaking for chain and account modals to prevent them from bundling when unused.

Screen recordings / screenshots

Here you can see that account and chain modals are bundled separately if they're being used.

tree-shaking-modals.mov

What to test

  • Whenever you don't use useAccountModal hook you shouldn't see account modal being bundled in network tab.
  • Whenever you don't use useChainModal hook you shouldn't see chain modal being bundled in network tab.

@magiziz magiziz requested a review from a team as a code owner August 1, 2024 10:29
Copy link

vercel bot commented Aug 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rainbowkit-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2024 10:29am
rainbowkit-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2024 10:29am

@magiziz magiziz linked an issue Aug 1, 2024 that may be closed by this pull request
1 task
@LufyCZ
Copy link

LufyCZ commented Aug 20, 2024

lgtm! Don't think there's a better solution. Thanks

@DanielSinclair DanielSinclair marked this pull request as draft August 22, 2024 05:52
@LufyCZ
Copy link

LufyCZ commented Sep 1, 2024

@DanielSinclair any specific reason this was closed?

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.

[bug] Tree-shaking isn't taking place for unused features
3 participants