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
// Always respect the user flag. Otherwise don't reset on mutation
.
There are cases when shortly before the loaders are completed, the user triggers a navigation that should be blocked. So after the sent requests are fulfilled, the modal is closed, so it's like a flash of content.
The text was updated successfully, but these errors were encountered:
I'm using React Router as a...
library
Reproduction
https://stackblitz.com/edit/github-vyi8vv4v?file=app%2Froutes%2Fhome.tsx
System Info
Used Package Manager
pnpm
Expected Behavior
I expected the blocker's state to not be reset after the active loaders are completed.
Actual Behavior
The blocker's state is reset to unblocked, so the UI and other parts depending on the state are hidden after.
I've investigated it to be from these lines,
react-router/packages/react-router/lib/router/router.ts
Lines 1249 to 1258 in c13ae09
There are cases when shortly before the loaders are completed, the user triggers a navigation that should be blocked. So after the sent requests are fulfilled, the modal is closed, so it's like a flash of content.
The text was updated successfully, but these errors were encountered: