-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Using stop() still changes the URL to the next path #62
Comments
Hello @jasongrishkoff , Very sorry for late reply. Could you describe in more details in more details, is the URL in the browser get changed? Is the new template get rendered? Note: You can't call |
The URL gets changed, but the template does not get rendered. |
@jasongrishkoff do you have any errors or exceptions in a browser/server console? Sound's like routing was interrupted by something |
@jasongrishkoff let me know if you have more details or it's got solved. |
There are no errors in the browser/server console. |
@jasongrishkoff Minimal reproduction would help a lot. Marked [help wanted] |
Hey @jasongrishkoff, I believe right after you call Feel free to close it in case if the issue is solved on your end. |
To me, "stop" would imply that I want to cancel my routing and stay where I am. The fact that it only fires after the URI has changed seems wrong. I've already used a workaround, so in a sense this is solved. |
@jasongrishkoff would you share your workaround? |
I basically just trigger the back button.
|
@jasongrishkoff thank you. We did additional checking, there is no easy way (or at least we haven't found any) to change this behavior, this part remained unchanged from original flow router. |
When firing
stop()
inside of the globaltriggers.exit
, the expected behavior is that the user is not taken to the next route. From what I can see, FlowRouter still updates all its internals to reflect that we're on the new route, even though the page doesn't actually change.This guy seems to have had a similar problem and solved it, but the pull request was never merged?
kadirahq#681
The text was updated successfully, but these errors were encountered: