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
Similar to the useCanGoBack hook, a hook to know whether the history can be safely navigated forward using router.history.forward().
Right now we have no other option but to use internal __TSR_index history state variable, and it's not reliable since the history length can be greater than the last index you'll ever get using router.history.forward().
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Similar to the
useCanGoBack
hook, a hook to know whether the history can be safely navigated forward usingrouter.history.forward()
.Right now we have no other option but to use internal
__TSR_index
history state variable, and it's not reliable since the history length can be greater than the last index you'll ever get usingrouter.history.forward()
.Beta Was this translation helpful? Give feedback.
All reactions