Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 03258ee

Browse files
authored
added locationChange watcher
Force the update of the react component on url change
1 parent bbce087 commit 03258ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/listings/listings.routes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ import angular from 'angular'
2121
if (usersnapWidget && usersnapWidget[0]) usersnapWidget[0].remove()
2222
}
2323
})
24+
$rootScope.$on('$locationChangeSuccess', function(event, toState, fromState) {
25+
$rootScope.challengeFilter.forceUpdate()
26+
})
2427
}])
2528

2629
function routes($stateProvider) {

0 commit comments

Comments
 (0)