Closed oedotme closed 5 months ago
Navigation to the same route path with different state is detected using navigate(path, { state: ...}) directly — however when using browser back/forward buttons, the state changes are not detected until the page is refreshed.
navigate(path, { state: ...})
https://stackblitz.com/edit/solid-router-back-forward-undetected-state-change
Open in New Tab
null
Go to about with active true
/about
{"active": true}
back
/
Go to home with active false
{"active":false}
Same steps as above in the reproduction, starting from 11:
Same with the browser forward button
forward
No response
114.0.5735.133
1.52.126
Describe the bug
Navigation to the same route path with different state is detected using
navigate(path, { state: ...})
directly — however when using browser back/forward buttons, the state changes are not detected until the page is refreshed.Your Example Website or App
https://stackblitz.com/edit/solid-router-back-forward-undetected-state-change
Steps to Reproduce the Bug or Issue
Open in New Tab
null
Go to about with active true
button/about
and the state is{"active": true}
back
button/
and the state isnull
Go to home with active false
button/
and the state is{"active":false}
back
button/
and the state is{"active":false}
the unexpected behavior/
and the state isnull
expected at 12. without refreshExpected behavior
Same steps as above in the reproduction, starting from 11:
back
button/
and the state isnull
without refreshing the pageSame with the browser
forward
buttonScreenshots or Videos
No response
Platform
114.0.5735.133
1.52.126
Additional context
No response