Navigation Blocking doesn't work with browser's back button.
Navigation blocking works with a Link or useNavigate but doesn't work with browser's back button. Am I missing something?
6 Replies
metropolitan-bronze•3y ago
Hmmm. It should.
File a bug and reproduction.
helpful-purpleOP•3y ago
GitHub
Navigation Blocking doesn't work with browser's back button. · Issu...
Describe the bug Navigation blocking works with Link or useNavigate but doesn't work with browser's back button. So if someone go back using back button, blocking is being surpassed. Your E...
helpful-purpleOP•3y ago
I created an issue and attached the sandbox there. I couldn't find latest beta version on sandbox but I assumed useBlocker has not changed since the version that I used with sandbox. The issue I stated can be clearly seen there.
metropolitan-bronze•3y ago
Awesome
Thanks!
helpful-purpleOP•2y ago
Hi @Tanner Linsley! https://github.com/TanStack/router/issues/701 is still open for 3 months. Will you be able to fix that? I was the one who suggested switching to tanstack's router and my team is putting pressure on me since I removed all blockers saying there is a bug on them and developers of the library said it will be fixed soon.
GitHub
Navigation Blocking doesn't work with browser's back button. · Issu...
Describe the bug Navigation blocking works with Link or useNavigate but doesn't work with browser's back button. So if someone go back using back button, blocking is being surpassed. Your E...
metropolitan-bronze•2y ago
I will. It’s pre launch, but low priority compared to other issues
It’ll get fixed