Skip to content

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 ​

PropertyTypeDescriptionDefined in
reset(options?) => voidWrites every key back to its default, or removes it, in one navigation.router/use-route-states.ts:81
set(patch, options?) => voidWrites 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

Released under the MIT License.