4 ms·
> it's impossible to implement "optimistic UI," where the user creates a TODO item on the client side and posts the data back to the server in the background.
by geenat 3y ago
> it's impossible to implement "optimistic UI," where the user creates a TODO item on the client side and posts the data back to the server in the background.
Pretty common patterns for this- just use a sprinkle of client side JS (one of: hx-on, alpine, jquery, hyperscript, vanilla js, etc), then trigger an event for htmx to do its thing after awhile, or use the debounce feature if it's only a few seconds. Lots of options, actually.
React would have to eventually contact the server as well if we're talking about an equivalent app.