Description
If a transition is redirected, and the target state's reloadState
is set to an (internal) state object, the resolves for that state should reload because the state is exited/entered.
http://plnkr.co/edit/7Dxx3hGiTeObMGWFVS7D?p=preview
However, we retain already-resolved-data during redirects to avoid double-fetching resolves. This happens for instance if a hook depends on a resolve, and then redirects to a default substate. We do not want to re-fetch the resolve, so it is provided to the redirected transition pre-resolved.
ui-router/src/transition/transition.ts
Lines 293 to 299 in 426f134
This logic in Transition.redirect()
should filter out "matching" states when the options.redirectState
.includes()
the state.