-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Support unistyles provider with no breaking changes #337
Support unistyles provider with no breaking changes #337
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Are you saying we can use unistyles without prebuilding? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, I will try to play around with it 🙏🏼
@yousefelgoharyx ping, can you fix the syntax? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lint reported some issues
Testing now |
Changing 1000 boxes with
What a change!! |
Letsss gooo 🚀🚀🔥🔥 |
Summary
The current version of Unistyles has a big performance hit in projects where
useStyles
hook is used a lot as described in this discussion #240This PR implements the solution mentioned by the author of the discussion but without any breaking changes. You can opt in by adding
UnistylesProvider
at the root of your app to get a huge performance gainThanks to the author of the discussion for such a brilliant workaround