Re:How we got to LiveView
by chrismccord on Wednesday September 22, 2021 @11:39PM
(#28624980)
We have optimistic UI features where we'll apply a css class to the interacted element, lock that DOM container for inbound updates, and only remove the class when that specific interaction is acknowledged by the server. We can also swap text in a similar fashion. The DockYard blog I linked up thread covers these things in detail.
It seems like your changes aren't really committed until they hit the database, but there are a lot of intermediate states.