You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried subscribing to router history changes to track back/forward navigation, but it's not working for me. When using the browser’s back/forward buttons, I get this action - { type: 'GO', index: NaN }.
I looked into history/src/index.ts and found that the history index is stored in __TSR_index, and in my case, it's NaN (see screenshot).
Which project does this relate to?
Router
Describe the bug
I tried subscribing to router history changes to track back/forward navigation, but it's not working for me. When using the browser’s back/forward buttons, I get this action -
{ type: 'GO', index: NaN }
.I looked into
history/src/index.ts
and found that the history index is stored in__TSR_index
, and in my case, it's NaN (see screenshot).Your Example Website or App
https://stackblitz.com/edit/github-gn1q23iq?file=src%2Froutes%2F__root.tsx
Steps to Reproduce the Bug or Issue
Expected behavior
I'd expect
BACK
action type being sent when using browser back buttonScreenshots or Videos
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: