Replies: 3 comments
-
I think your use case is worth an improvement of |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have a similar issue with two use cases:
maybe something like: @tannerlinsley What is your opinion? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have a similar issue with search params on the same route |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
Is the
useBlocker
hook meant to block navigation when navigating to hash urls on the same page?Let's say that I'm on the page
/user
which contains a form. When I edit this form, I turn blocker navigation on because the page has come dirty (i.e.useBlocker
fires if the user tries to navigate to another page like/hello
.There is also a link on the page which navigates to
/user#about
. If I click this link,useBlocker
is also fired, even if the navigation only happens on the same page. Is this the expected behavior ofuseBlocker
? Is there a way to skip the firing if navigation happens on the same page via hash url?Beta Was this translation helpful? Give feedback.
All reactions