3 ms·
HTMX has out of band updates too [0], what's the differentiator? [0] https://htmx.org/attributes/hx-swap-oob/ https://htmx.org/attributes/hx-swap-oob/
by meander_water 1y ago
HTMX has out of band updates too [0], what's the differentiator?
[0] https://htmx.org/attributes/hx-swap-oob/ https://htmx.org/attributes/hx-swap-oob/
- devnull3 1y agoIn DS, with SSE you can paint different parts of the page with ease. So in this case, it can update <form> and <label> separately. So instead of one update the backend fires 2. There is not separate marker or indicator for OOB. I think it is best seen in examples on DS website.
- meander_water 1y agoNeat, I'll give DS a go. HTMX also has the option of using SSE with an extension [0]. I've used this to update the notifications tray for example. You could probably do it for OPs example too. [0] https://htmx.org/extensions/sse/ https://htmx.org/extensions/sse/