Closed jutaz closed 4 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This does not mean that the issue is invalid. Valid issues may be reopened.
Thank you for your contributions.
This is a (check one box):
My version of UI-Router is:
1.0.4
Bug Report
Current Behavior:
Give the following pseudo-example of the route configuration (used AngularJS as base):
If one is navigating to
state1
and logic for redirection ($state.go
) is triggered,anotherDependency
will still run, causing it to error out, due to dependency not having a submodel, as instead of being injected with an expected Object, its value becomes theTransition
object.Note that using
$transition$.abort()
has no effect in this case.Currently the only way to prevent this is to reject
dependency
resolve, but that produces an error of type6
, which isn't what actually is happening.Expected Behavior:
I would expect further resolves not to execute if a resolve starts a new transition, which superseeds the current one.
Link to Plunker or stackblitz that reproduces the issue:
https://ui-router-angularjs-rrdmns.stackblitz.io