Interface: UseRouteStatesApi<TOptions>
Defined in: router/use-route-states.ts:77
What useRouteStates returns besides the refs.
Type Parameters
| Type Parameter |
|---|
TOptions extends readonly RouteStateConfig[] |
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
reset | (options?) => void | Writes every key back to its default, or removes it, in one navigation. | router/use-route-states.ts:81 |
set | (patch, options?) => void | Writes the keys in the patch in one navigation, and leaves the others alone. | router/use-route-states.ts:79 |
toObject | () => StateSnapshot<TOptions> | Returns the current values as a plain object. | router/use-route-states.ts:83 |