Hi! I'm new to yew and to frontend frameworks in general. Previously I have only used templating engines like Tera/Jinja.
I'm just testing yew atm before I start with my project to get some understanding, and I'm struggling to understand how SSR works.
I would like to emulate something that I'm used to with Tera, where the server can provide the page with extra data and then render on demand. I assume this would be equivalent to "hydration" in yew lingo.
From the limited examples and github issues, I have gathered that hydrate content needs to be slotted inside the body element, otherwise it won't work, crashing yew with expected Component(App) start, found node type 1.
From the docs I understood that the point of suspend/hydration is to allow the client to receive part of the page, eg display a loading screen, and then receive the remainder of the data afterwards, however I don't see how this makes sense if the hydration body must be slotted in the middle of the loading page. I would expect that you could stream the content to the client, where the first data sent would be the loading page, and then after a few seconds of server-side code, the remainder of the page would be sent afterwards.
I don't think I'm understanding this correctly, so I'm looking to have my understanding corrected.