News for hackers. Stuff that matters.
Re:Htmx Is the Future by jonahx on Saturday May 06, 2023 @12:40AM (#35838072)
> by a single server maintaining all the states

HTTP is stateless. This is the whole point of the hypermedia paradigm.

If you have a page with many partial UI page changes over htmx, then yes, this paradigm puts increased load on the server, but your DB will almost certainly be your bottleneck before this will be, just as in the SPA case.

Re:Htmx Is the Future by jdthedisciple on Saturday May 06, 2023 @07:24AM (#35840239)
I'm not talking about network state, but app state.

Yes, in HTMX the server is handling client app state, even things as little as whether a todo is in read or edit state.

That just seems absurd to me, let the client take care of that.

Re:Htmx Is the Future by bccdee on Monday May 08, 2023 @08:57PM (#35868983)
Not really? The server in your example serves the read & the edit components statelessly; the component which the user is viewing exists only on the client.