In elixir/liveview there’s not yet a great way to have optimistic UI via js, but the server can send an update to the client when the action was received and later when the action was done send another update.
1 Like