useUrlSearchParams ​
browser
test coverage
Last changed: yesterday
Hook that provides reactive URLSearchParams
typescript
import { useUrlSearchParams } from '@siberiacancode/reactuse';
Usage ​
typescript
const { value, set } = useUrlSearchParams('history');
Demo ​
Api ​
Parameters
Name | Type | Default | Note |
---|---|---|---|
mode | UrlSearchParamsMode | - | The URL mode |
options? | UseUrlSearchParamsOptions<Value> | - | The URL mode |