2 ms·
Datastar makes this even simpler. No need to think about OOB swaps. Just regenerate the page and Datastar streams it over SSE and surgically updates the DOM. Th
by JSR_FDED 2mo ago
Datastar makes this even simpler. No need to think about OOB swaps. Just regenerate the page and Datastar streams it over SSE and surgically updates the DOM. They call this “fat morph”. You can be more precise about individual updates but it’s hardly ever necessary - it’s basically instantaneous.
Given how much you’ve already developed it would take you no time to pick it up but of course it’s nice to control your own destiny with your own code.
There’s one additional thing you get with Datastar and that’s a very easy Signals implementation on the browser side. For lightweight interactivity you don’t need a server trip. And when you do POST something to the server the values of the signals are automatically included so your backend code knows the front end UI state (and can modify it).