Liveview pages reloading during service deployments... how to improve UX?

I noticed that Liveview components get re-mounted and lose their state when our service gets redeployed, which, of course, makes sense.

However, we are used to (and we really like) deploying any time / often, and this makes for suboptimal user experience, so if anyone has any ideas for techniques / approaches that I could apply to improve user experience across deployments, I would much appreciate them.

Thank you!

I think this Saving and Restoring LiveView State · Fly might be useful.

Since the browser session is consistent, local storage should make this seamless.

1 Like

also use static_changed Phoenix.LiveView — Phoenix LiveView v0.18.3 and add the nice reload bar to your app…