You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When routerWillLeave returns text to trigger a confirmation, and the user clicks "Cancel" to abort the transition, the confirmation box appears again. This appears to be a result of routerWillLeave being called again. nextLocation appears to be the same both times routerWillLeave is called.
Expected: one confirmation box appears to the user. The confirmation box goes away if the user clicks "Cancel".
Test this by adding a routerWillLeave method that returns text.