The current SSR example from the readme does not work. I have submitted a working SSR example in https://github.com/ConsoleTVs/sswr/pull/32 and I think that is the only way to have working SSR. ("Working" in this case means the rendered data is present in the HTML response from the server.)
Demo
You can see that "undefined" flashes on the screen before the data loads:
I have also tried an alternative approach with data fetching through a Page Endpoint but that has the same problem where the value is undefined at the start.
The current SSR example from the readme does not work. I have submitted a working SSR example in https://github.com/ConsoleTVs/sswr/pull/32 and I think that is the only way to have working SSR. ("Working" in this case means the rendered data is present in the HTML response from the server.)
Demo
You can see that "undefined" flashes on the screen before the data loads:![Animation](https://user-images.githubusercontent.com/1207507/177062978-38ec2607-53d4-4728-be7d-fea8933c3362.gif)
Repro (code from readme)
Misc
I have also tried an alternative approach with data fetching through a Page Endpoint but that has the same problem where the value is
undefined
at the start.