- useSearchState<T>(defaultValues?, config?): readonly [T, Dispatch<SetStateAction<T>>]
Type Parameters
- T extends Record<string, Value>
Parameters
- defaultValues: Partial<T> | (() => Partial<T>) = {}
- config: ISearchStateConfig = {}
Returns readonly [T, Dispatch<SetStateAction<T>>]
- An array containing the search state object and a function to update the search state.
Custom hook useSearchState for managing search state in the URL.