-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
"There is no route defined for key "a" in beta.12-15 #2189
Comments
|
using |
@aksonov Didn't work as I'm not using a reset here. I have an intermediary screen that calls
|
Oh on the actual |
Have you tried using Also @asokol don't you think it's worth documenting that somewhere? It's pretty useful and almost every app will implement login/logout |
PR is welcome. |
So @aksonov How do I have two routes that can perform a reset? I also tried POP_AND_PUSH and it seems to just do a push. I need to clear the entire stack when logging out and its not doing anything |
@alexwasner Please send me link to repo, it is difficult to say something |
I can't share this repo as it's work related and had to remove a bunch of styles just to get that gif to show. If I get time in the next few days, I can strip it down to the bare bones and send a link to that |
@aksonov Here is an example of the navigation bug from the gif above. alexwasner@faf4e74 If you launch the app, you can follow exactly with the gif I provided. If you click the "Go to Launch page" on the Home page, and try to click on the the links, you will see the original bug I listed. |
@alexwasner Looks like it happens because react-navigation doesn't have normal 'replace' - i.e. push & pop previous scene. I implement 'replace' with their 'reset' action but it is not real 'replace'. Now I implemented it as PUSH & POP_PREVIOUS, check now. P.S. If you use react-navigation |
Should be fixed within latest master |
Actions.pop() will do what you want |
Version
Tell us which versions you are using:
Expected behaviour
I should be able to navigate from
E
toA
Actual behaviour
I get an error thrown
Steps to reproduce
I have an app set up with the following structure:
When launching the app, I got to
E
which runs a few checks to determine where to navigate to next incomponentDidMount
. It callsActions.a()
which should navigate. Instead, I getThere is no route defined for key a. Must be one of 'root','f'
. I tried with a bunch of more routes and still get the same errorThe text was updated successfully, but these errors were encountered: