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 have a simple app with a root route / and some child routes. The root route renders the <Layout /> component with an outlet and a Blocker component that uses the unstable_Blocker hook to block all navigations.
Open the app at the root route /
Click on router link "One" => route is blocked
Click on "Let met through" => router proceeds
Click on router link "Two" => route is NOT blocked anymore
Every navigation should be blocked, not just the first one, as the blocker function always returns true.
Actual Behavior
Only the first navigation is blocked. After proceeding with the first blocked navigation, no other navigation is blocked and the blocker also never calls the shouldBlock function again.
The text was updated successfully, but these errors were encountered:
We just published version 6.14.1-pre.1 which involves this issue. If you'd like to take it for a test run please try it out and let us know what you think!
What version of React Router are you using?
6.14.0
Steps to Reproduce
I have a simple app with a root route
/
and some child routes. The root route renders the<Layout />
component with an outlet and aBlocker
component that uses theunstable_Blocker
hook to block all navigations./
Reproduction:
Expected Behavior
Every navigation should be blocked, not just the first one, as the blocker function always returns
true
.Actual Behavior
Only the first navigation is blocked. After proceeding with the first blocked navigation, no other navigation is blocked and the blocker also never calls the
shouldBlock
function again.The text was updated successfully, but these errors were encountered: