opened
bdo
username_0
The setRouteLeaveHook example is incorrect as it is missing the call to `window.confirm`.

This PR fixes it.
Fix setRouteLeaveHook example
issue
created
timdorr
username_1
It's right as-is. The string gets passed back when leaving the route to be used for preventing the navigation event.

https://developer.mozilla.org/en-US/docs/Web/Events/beforeunload
comment