|
|
|
|
|
by auraham
244 days ago
|
|
Can you elaborate on how React was a better fit than LiveView for your use case? In my opinion, the main drawback of LiveView is that we assume that the user do no click on the Back button of the browser. In other words, if the user changes the page by pressing the Back button, then Phoenix closes the socket, creates a new one, and the state is lost. I really like LiveView but not sure how to persist the state between page reloads without using Ecto (also, not sure if that is idiomatic). |
|
I don't think that has to be the case. You can use "patch" style links to navigate from page to page in the same session.
https://hexdocs.pm/phoenix_live_view/live-navigation.html