am I missing something or is hydration (the web development concept) just frameworks originally invented to make SPAs reinventing the wheel????

Follow

@wallhackio reinventing the wheel in what way? which is to say, what exactly are you asking? (i almost certainly do not know the answer but i want to know what i want to try to figure out)

@aescling @wallhackio I am also having trouble parsing the original question.

@aschmitz @aescling @wallhackio i think the idea is like, does it basically just amount to having a web app that performs queries and generates responses old style, like how things were pre SPA or even pervasive JS

@aschmitz @aescling I would imagine in 2005 that having a server serve HTML that has some JavaScript loaded afterwards that adds interactivity would just be, like, the obvious way to do things

@wallhackio @aescling Ah! Uh. Kind of. Early JS-based progressive enhancement (if you were lucky) tended to rely on existing HTML or inlined data. Hydration is kind of inlined data, but the main difference there is that a SPA that can be hydrated is almost certainly running [nearly] the same code on the client side as was on the server side to generate the page served directly, so you're basically bootstrapping a client-side version of the site, rather than adding JS to a server-side thing.

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.