Duplicate styles when extracting on server
Closed this issue · 10 comments
KyleAMathews commented
Not a big deal with gzip but still should be fixed at some point.
Also it'd be nice to remove to remove extra whitespace to keep that slick compiled & minified look :-)
threepointone commented
Yeah spotted this, will fix asap!
threepointone commented
this is fixed and live in 2.16.1. sorry for the trouble!
KyleAMathews commented
great! No trouble at all!
threepointone commented
ps - I'll do the whitespace fixes in a separate release.
KyleAMathews commented
👍
threepointone commented
fyi - whitespace fixes live in 2.17.2
KyleAMathews commented
Great thanks!
cellis commented
I'm still getting this problem, if I inject css into the rendered string AND call rehydrate
.
threepointone commented
could you make sure you're calling rehydrate() before importing any other modules? needs to be at the very start of the app.
cellis commented
@threepointone yes this fixed the problem. Thanks