You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
christopherthielen
changed the title
1.0 redirect: resolves are not reloaded, even if reloadState is set
1.0 redirect: certain resolves are not reloaded, even if reloadState is set
Feb 8, 2016
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 theoptions.redirectState
.includes()
the state.The text was updated successfully, but these errors were encountered: