dantrain / react-stonecutter

Animated grid layout component for React
http://dantrain.github.io/react-stonecutter
MIT License
1.21k stars 72 forks source link

Server-side rendering #44

Closed mquandalle closed 6 years ago

mquandalle commented 6 years ago

Hi,

I'm using react-stonecutter on a server-side rendered page. You can see the example here: https://smartariffa.it/.

The server-side rendering is working, you can see that the cards content is present in the html source, search for “Senza limiti” for instance. However when the page loads the cards aren't displayed, until the Stonecutter layout calculation is done (I'm using measureItems with a custom layout and a SpringGrid) — which takes about 1 sec in the above example.

Do you have any idea why stonecutter “re-hydrating” isn't working as for other React server-side rendered components, and do you have any pointer about how to fix this issue?

erikleon commented 5 years ago

Any resolution on this?