Skip to content

Commit

Permalink
Update openbas-front/src/components/common/queryable/useQueryableWith…
Browse files Browse the repository at this point in the history
…LocalStorage.tsx
  • Loading branch information
guillaumejparis committed Oct 18, 2024
1 parent 0e37fe1 commit fbf426f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const useQueryableWithLocalStorage = (localStorageKey: string, initSearch
const [searchPaginationInput, setSearchPaginationInput] = useState(searchPaginationInputFromUri ?? searchPaginationInputFromLocalStorage);

useEffect(() => {
// check deep changes between state from local storage and transitional state
if (!R.equals(searchPaginationInputFromLocalStorage, searchPaginationInput)) {
setSearchPaginationInput(searchPaginationInputFromLocalStorage);
}
Expand Down

0 comments on commit fbf426f

Please sign in to comment.