Skip to content

Commit f8274de

Browse files
committed
state will now be reloaded if `state.reloadOnSearch = false` when doing `state.go('stateName', {reload: true})`
1 parent 8aed5da commit f8274de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/state.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {
11891189
}
11901190

11911191
function shouldTriggerReload(to, from, locals, options) {
1192-
if (to === from && ((locals === from.locals && !options.reload) || (to.self.reloadOnSearch === false))) {
1192+
if (to === from && ((locals === from.locals) || (to.self.reloadOnSearch === false)) && !options.reload) {
11931193
return true;
11941194
}
11951195
}

0 commit comments

Comments
 (0)