Skip to content

Clicking the currently active page causes the state to become stuck in a 'leaving' transition. #29

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

Open
gerwld opened this issue Mar 23, 2025 · 1 comment

Comments

@gerwld
Copy link

gerwld commented Mar 23, 2025

Issue title:

Clicking the currently active page causes the state to become stuck in a 'leaving' transition in 0.2.9, and with solution from === to it stuck on the route if clicked twice.

Version related:

  • v.0.2.9 and higher

Message:

Hello, @ismamz. First at all, thank you for that package, it's really useful. I've tried to

 if (from === to) {
    complete();
    next();
  }

as it was mentioned before, it works. However, now it doesn't navigate anywhere from the link it currently is. For example, when I click twice on the current link "/contact", then after it doesnt want to navigate to "/" route. Is there any possible solution for that? Thanks in advice

UPD. I roll back it to 0.2.8 and now It seems to be working.

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