aws-samples / react-ssr-lambda

Demo of server side rendering for React application on AWS Lambda
MIT No Attribution
107 stars 24 forks source link

Data is loaded again (unnecessarily) after hydration #16

Closed jakke-korpelainen closed 2 years ago

jakke-korpelainen commented 2 years ago

Hey,

I'm running a working implementation of a solution based on this stack. However I've now run into a slight issue that the static result hydrated by React is loading the same information again.

https://github.com/aws-samples/react-ssr-lambda/blob/8c57f9d5343e78213a8cec1ff3d1f1d41c5932fa/simple-ssr/src/App.js#L9

In the props there is isSSR and ssrData, but I'm not finding references that it those are used from anywhere. I'm aware that this might not be an issue related strictly to this sample but would be interested in how and if you've solved this somehow.

roman-boiko commented 2 years ago

Will be updated in a new sample I am working currently on