ssrwpo / ssr

SSR - Router with SSR for Node & Meteor
https://ssrwpo.github.io/ssr/
MIT License
93 stars 16 forks source link

Add style to helmet renders in step 7 #83

Closed rangeoshun closed 6 years ago

rangeoshun commented 6 years ago

Hi!

So enhancement request here. Current working:

Helmet styles are excluded from render.

This makes Material-UI SSR throw warnings, because the prerendered styles are included in the server render, but not in client, so checksum is invalid for react.

Adding 'style' to the dynamicHead pick list allows for injecting CSS that needs not to be in the react root.

rangeoshun commented 6 years ago

Ok, just tested this thing here, and it works as expected.

rangeoshun commented 6 years ago

Here's my repo which I'd like to turn into a boilerplate for another project:

https://github.com/rangeoshun/meteor-react-tasks

Currently I published my own copy of ssr to move forward, but I'd like to return to use the original package.

Also if you guy's have better suggestion to manage this use-case, please let me know.