-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Cannot register orphaned state #2546
Comments
is this behavior different than 0.2.x? |
Yes, in 0.2.x it didn't care in what phase the states were added. |
thanks. I'm surprised, because I thought we straight up ported the registration code without changing our unit tests. Confirmed, this was from the initial commit 99d53ac of what became the 1.0 branch, and was never in 0.2.x |
Can I confirm whether this behaviour is a bug, or whether its best practise to configure states in the config phase? |
My opinion: I think it should not be that restricted though as states could be added in later time (e.g. async loading modules). But lets see what devs will say. |
@redhead 100% agree. This makes it impossible to define routes across modules as far as I can see which is limiting |
I agree, I will back the orphan check out.
|
Do you have any updates here? |
coming soon |
I'm trying out ui-router 1.0.0-alpha on our project, and once I start it, I get this message:
I guess that is because we configure states in run phase according to the papa guidelines and so the top state may have not been added before the child state.
Is it a bug or we should not use this approach and configure states only in config phase?
The text was updated successfully, but these errors were encountered: