-
Notifications
You must be signed in to change notification settings - Fork 3k
Sibling states getting mixed up in new/update scenario #3523
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
Comments
I have a related issue: In my case there are two states: It works perfectly fine when i use ui-sref directive for state transition. uirouter/angularjs: 1.0.6, |
See also #1277 Utterly silent failings after an upgrade are very embarassing... |
Also seems to be intermittent. I've been able to run through this locally fine, deploy and then find that some routes are borked for some users and not necessarily reproducible... |
I am having this issue as well. Has there been any progress? |
Updating to 1.0.15 fixed my issues |
@josduj , problem is reported on 1.0.3. So that could mean that it was introduced after 1.0.15 or that your scenario is different |
@dietergeerts 1.0.15 is after 1.0.3 so I think @josduj is implying it might have been fixed? The problem is testing it. It was intermittent for me and seemed to be based on load orders (possibly with lazy loading at my end) so there was not replicatable test. I've upgraded to 1.0.15 but didn't remove the regexp fix as per #1277 (comment). |
Oops. I saw 30 in my head. I'll try to upgrade and see if it's fixed. |
This issue has been automatically marked as stale because it has not had This does not mean that the issue is invalid. Valid issues Thank you for your contributions. |
This is a:
My version of UI-Router is: 1.0.3
Bug Report
Current Behavior:
I have two states:
Now when loading the page with url
mysite.com/users/new
, it loads the updateState instead of the createState. A current workaround is to add the createState after the updateState on the$stateProvider
, but that's harder to control as we use encapsulating modules for each thing to better control our dependencies, so a state file is like:And then we can add that dependency to the modules that needs it, and we can't be sure that the createState is added after the updateState with this.
Expected Behavior:
I would expect the ui-router to check of there is a sibiling state that hasn't a paramter, and check if that's a match first, so that order isn't important.
Link to Plunker that reproduces the issue:
If really needed, I can add one, just let me know.
The text was updated successfully, but these errors were encountered: