I’m using LiveView in my app.
In router i have:
live "/:entity/:id", SlideLive
That render a page with 2 push_patch for move on the next/prev item that work well: the url, the title and the content changes.
The problem is when i use the browse buttons (back or forward) in this case changes only the url and the title but the content remain the same.
What can i do for change also the content of page?
Thanks
Can you share some code or even better a minimal demo reproducing what you’re seeing?
In the meantime, CRUD users with live pagination
from phoenix_live_view_example has a similar implementation: consider navigation through the pagination and then use the back/forward browser buttons. Content is being properly updated. Maybe try this demo and see if you are experiencing the issue you are describing.
1 Like
Sorry, i found the issue. I overrided window.onpopstate js method
Thanks
1 Like