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
Navigate to a route which blocks the navigation via "history.block()". Blocker function allows navigation instantaneously, based on some provided condition, without prompting the user in any way.
Try clicking browser "back" button or call "navigate(-1)"
Blocker is called, and, if "transition.retry()" is triggered, user is navigated to a previous page after the first "back" button click (or navigate(-1) call).
Actual Behavior
URL is not changed. Blocker is called, but calling "transtion.retry()" does nothing for the first time. Navigation only happens on the second interaction.
The text was updated successfully, but these errors were encountered:
What version of React Router are you using?
6.2.2
Steps to Reproduce
Demo: https://stackblitz.com/edit/react-ts-eyafwn?file=index.tsx
P.S. BrowserRouter works correctly with this scenario.
P.P.S. Seems to be Chromium-specific
Expected Behavior
Blocker is called, and, if "transition.retry()" is triggered, user is navigated to a previous page after the first "back" button click (or navigate(-1) call).
Actual Behavior
URL is not changed. Blocker is called, but calling "transtion.retry()" does nothing for the first time. Navigation only happens on the second interaction.
The text was updated successfully, but these errors were encountered: