Hacker News new | ask | show | jobs
by marcofiset 1114 days ago
Phoenix LiveView handles all of those concerns extremely well and pretty much for free. All of my modals are tied to a live action in a given live view. You can bookmark them, use the browser back button to close them and the state "under the modal" is a complete non-issue. It's just loaded as part of the live view and a modal is shown only on specific actions.

That may sound like gibberish if you're not familiar with Phoenix LiveView, but it all makes sense and it just works.