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
fix($state): reloadOnSearch should not affect non-search param changes.
The handling of `reloadOnSearch: false` caused ui-router to avoid
reloading the state in more cases than it should. The designed and
documented behavior of this flag is to avoid state reload when the
URL search string changes. It was also avoiding state reload when
the URL path (or any non-search parameters to the state) changed,
and even when state reload was explicitly requested.
This change
- flips the name of shouldTriggerReload (and the accompanying guard
boolean, skipTriggerReloadCheck) to match the direction of the
logic: shouldSkipReload and allowSkipReloadCheck
- teaches shouldSkipReload to look at the types of the differing
parameters, and only skip the reload if the only parameters that
differ were search parameters
- pulls the test for options.reload to the front of the complex
boolean expression.
- Updates $state.params and $stateParams when skipping reload
Fixes#1079. Helps with one of the cases broken in #582.
0 commit comments