File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
src/Common/Hooks/useUrlFilters Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- import { useEffect , useMemo , useRef } from 'react'
17
+ import { useMemo , useRef } from 'react'
18
18
import { useHistory , useLocation } from 'react-router-dom'
19
19
import { getUrlWithSearchParams } from '@Common/Helper'
20
20
import { DEFAULT_BASE_PAGE_SIZE , EXCLUDED_FALSY_VALUES , SortingOrder } from '../../Constants'
@@ -186,18 +186,6 @@ const useUrlFilters = <T = string, K = unknown>({
186
186
_resetPageNumber ( )
187
187
}
188
188
189
- useEffect ( ( ) => {
190
- // if we have search string, set secondary params in local storage accordingly
191
- if ( location . search ) {
192
- localStorage . setItem ( localStorageKey , JSON . stringify ( parsedParams ) )
193
- return
194
- }
195
- const localStorageValue = localStorage . getItem ( localStorageKey )
196
- if ( localStorageValue ) {
197
- updateSearchParams ( JSON . parse ( localStorageValue ) )
198
- }
199
- } , [ ] )
200
-
201
189
return {
202
190
pageSize,
203
191
changePage,
You can’t perform that action at this time.
0 commit comments