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
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