Navigation guard hooks (confirm leaving page) #2257
Unanswered
mablin7
asked this question in
Discussion
Replies: 1 comment 6 replies
|
Indeed, I don't think it's possible and I can't think of a workaround.
What exactly would that confirmation dialog work? |
6 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.
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
All reactions