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:
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.