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

Support for React 18 #430

Open
hhvys opened this issue Sep 30, 2022 · 1 comment
Open

Support for React 18 #430

hhvys opened this issue Sep 30, 2022 · 1 comment

Comments

@hhvys
Copy link

hhvys commented Sep 30, 2022

Styletron currently generates and injects styles in render cycle (css will be used in render most of the time). Introduction of concurrent mode will lead to slowness. A detailed discussion can be found here.

Instead of injecting styles in render, we should add it in useInsertionEffect

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

No branches or pull requests

2 participants