Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confirmLeave question #443

Open
jpkontreras opened this issue Mar 27, 2020 · 0 comments
Open

confirmLeave question #443

jpkontreras opened this issue Mar 27, 2020 · 0 comments

Comments

@jpkontreras
Copy link

jpkontreras commented Mar 27, 2020

Hi.
Im using the router and it works but confirmLeave

if my app is started from root page(/) confirmLeave works in all routes
but if i start from a relative path (/user/1) confirmLeave is not triggering

Repro here
https://codesandbox.io/s/github/jpkontreras/state

then my question is if this is by design or im missing something

Repro steps

  • Click user button
  • Click Home button
  • Window.confirm should trigger
  • Click redirect to user 1
  • Click Home button
  • Window.confirm isnt triggering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant