Unverified Commit e279908b authored by Robert Knight's avatar Robert Knight Committed by GitHub

Merge pull request #1777 from hypothesis/add-stream-search-effect-deps

Add missing effect dependencies in StreamSearchInput
parents 10147e52 374f05b8
...@@ -25,7 +25,7 @@ function StreamSearchInput({ $location, $rootScope }) { ...@@ -25,7 +25,7 @@ function StreamSearchInput({ $location, $rootScope }) {
$rootScope.$on('$locationChangeSuccess', () => { $rootScope.$on('$locationChangeSuccess', () => {
setQuery($location.search().q); setQuery($location.search().q);
}); });
}); }, [$location, $rootScope]);
return <SearchInput query={query} onSearch={search} alwaysExpanded={true} />; return <SearchInput query={query} onSearch={search} alwaysExpanded={true} />;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment