v3.1.6
-
Bugfix for the last style tag sometimes being emitted multiple times during streaming (see #1479)
-
Bugfix for speedy mode rehydration and added handling for out-of-order style injection (see #1482)
NOTE: When calling consolidateStreamedStyles()
after streaming, make sure it is called as early in the bundle as possible.
styled-components injects new CSS upon construction of new components not prerender, so consolidation must happen before any new CSS is injected on the page.