sealninja / react-grid-system

A powerful Bootstrap-like responsive grid system for React.
https://sealninja.github.io/react-grid-system/
MIT License
817 stars 83 forks source link

SSR / Styled Components #114

Open gregorskii opened 5 years ago

gregorskii commented 5 years ago

A similar question has been asked, but I am getting flashes where the grid is temporarily unstyled at load in a Next application.

The site is styled with Styled Components for generic styling, and that works correctly at page load due to the configuration here https://github.com/zeit/next.js/blob/canary/examples/with-styled-components/pages/_document.js.

However the in our app are flashing unstyled at load.

Forgive me if this is just me misunderstanding how SSR works in this case. But I thought it should style when the containers are loaded from a page in Next.

Thanks in advance.

gerbenmeyer commented 4 years ago

Can you validate whether this is still the case with the latest version (^6.4.0)? This version contains some improvements wrt. SSR.

sephi-dev commented 3 years ago

I confirm this is still the case, even with de latest;