Skip to content

Commit 0e162c6

Browse files
lbogdanCompuIves
authored andcommitted
Fixed update search state when navigating back / forward. (codesandbox#812)
1 parent 9305180 commit 0e162c6

File tree

1 file changed

+1
-1
lines changed
  • packages/app/src/app/pages/Search

1 file changed

+1
-1
lines changed

packages/app/src/app/pages/Search/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Search extends React.PureComponent {
4646
};
4747

4848
this.unlisten = this.props.history.listen((location, action) => {
49-
if (action === 'PUSH') {
49+
if (action === 'PUSH' || action === 'POP') {
5050
this.setState({
5151
searchState: qs.parse(location.search.slice(1)),
5252
});

0 commit comments

Comments
 (0)