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
{{ message }}
Repository navigation
A stale blocker answer after a push makes the next Back change the URL without updating the router #8878
If a push happens while an async blocker is still waiting on a Back, and the old blocker is then answered "stay", the next Back changes the URL but the router never hears about it. The URL and the router stay out of sync.
It looks like the stale answer calls go(+1) after the push has removed forward history, so no popstate arrives and ignoreNextPop stays set for the next real Back.
After step 5, the URL and the router are both on /first.
Edit: After step 5 the still-mounted blocker asks again. While it waits, the URL is /first and the router is /new. Leaving puts both on /first. Staying still leaves them apart (index drift, not fixed by the linked PR).
An answer from a blocker that a push already replaced should have no effect on later navigation.
Activity