I'm confused on how to do optimistic UI changes using LiveView

I saw a post from Chris, x.com, and it triggers my confusion again regards to how to do optimistic UI’s using LiveView. I get the benefit of LiveView, but on real world situations latency can be a huge problem.

3 Likes

You can access the repo here: GitHub - chrismccord/todo_trek

Do you have any use-cases in mind? It would be unwise to discuss this matter in void.

There is actually a section of the docs that explain Optimistic Updates in LiveView.

https://hexdocs.pm/phoenix_live_view/1.0.0/syncing-changes.html

4 Likes