-
Notifications
You must be signed in to change notification settings - Fork 4k
Implement a StylesProvider #3352
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
Conversation
…t we pass to client component
|
Summary of the deployments: Version 1
Version 2
Test content |
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
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.
We already have a solution for that: CSS or Tailwind utilities. Introducing another thing like that is not the way to go.
This PR introduce a StylesProvider that we can use to pass tailwind css classes to client component.
It reduces the size of the RSC.
With this PR and #3339 , we can in some worst case scenario go from 41.8Mb to 14.3.
And we can iterate on this PR to improve this even further