Navigation guard hooks (confirm leaving page) #2257
Unanswered
mablin7
asked this question in
Help & Questions
Replies: 1 comment
-
Indeed, I don't think it's possible and I can't think of a workaround.
What exactly would that confirmation dialog work? |
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
-
Description
I am not sure if there is a good way to do this currently with client side routing, but it would be really nice if navigation could be intercepted and a confirmation dialog could be shown for when the user has some unsaved changes.
Of course the beforeunload event works, but only for when the user is closing the page,not when using client side navigation.
If there's a way to make this work right now, I'd really appreciate any tips
Beta Was this translation helpful? Give feedback.
All reactions