Skip to content

Commit

Permalink
filter query and filter on unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Apr 23, 2024
1 parent ac1c54c commit 81c35d8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ export const ChangePointDetectionContextProvider: FC = ({ children }) => {
if (globalFilters) {
filterManager?.addFilters(globalFilters);
}
return () => {
filterManager?.removeAll();
queryString.clearQuery();
};
},
[requestParamsFromUrl.filters, requestParamsFromUrl.query, filterManager, queryString]
);
Expand Down

0 comments on commit 81c35d8

Please sign in to comment.