threepointone/glamor

Duplicate styles when extracting on server

Closed this issue · 10 comments

gatsbyjs/gatsby#149 (comment)

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

Yeah spotted this, will fix asap!

this is fixed and live in 2.16.1. sorry for the trouble!

great! No trouble at all!

ps - I'll do the whitespace fixes in a separate release.

fyi - whitespace fixes live in 2.17.2

Great thanks!

I'm still getting this problem, if I inject css into the rendered string AND call rehydrate.

could you make sure you're calling rehydrate() before importing any other modules? needs to be at the very start of the app.

@threepointone yes this fixed the problem. Thanks