styletron / styletron

:zap: Toolkit for component-oriented styling
https://www.styletron.org
MIT License
3.32k stars 100 forks source link

Support for React 18 #430

Open hhvys opened 1 year ago

hhvys commented 1 year ago

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

message commented 1 year ago

bump