Confirm Navigation Modal with useBlocker #10898
Replies: 3 comments
-
Loved the implementation. saved me an hour from coding this myself. Thanks buddy. |
Beta Was this translation helpful? Give feedback.
-
Nice implementation, helped a lot |
Beta Was this translation helpful? Give feedback.
-
According to MDN it is recommended to listen for The default browser unsaved changes warning modal (e.g. reload, leave site) may also be shown on top of the custom
|
Beta Was this translation helpful? Give feedback.
-
Hello everyone, I'd like to share a Confirm Navigation Modal that I've implemented using
useBlocker
. I'm eager to hear the opinions of experienced developers about this implementation. Perhaps I've overlooked something or haven't covered all the cases.Beta Was this translation helpful? Give feedback.
All reactions