-
Notifications
You must be signed in to change notification settings - Fork 192
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
TriggersExit not firing again after "stop()"ped #491
Comments
I had a previous solution before running into this problem:
however, this solution threw an exception because |
triggersExit only runs once before you exit your page. It's not reactive. |
but I didn't actually exit, since I called
I am assuming this is a bug, and that triggersExit would actually be called the second time as well? :) |
I hope this can either be accepted as a bug or dismissed as a misunderstanding on my part :) I find it quite logical that triggersExit should run a 2nd time, if I |
So I have a partial fix which is rather hackish and leaves repeated history entries. I can make a PR but. @arunoda will probably need to fix it up given my experience with flow-router's source is just a few hours. |
Fixed relatively comprehensively here: #681 |
the titles sums it up - I'm unable to have my triggersExit function fire again, after it has been stopped.
this is my code
The trigger is fired the first time I try to leave the route, but won't trigger again before I navigate away from the route or refresh.
I'm not sure if this is a bug, or if I'm approaching this the wrong way :)
The text was updated successfully, but these errors were encountered: