Skip to content

Function: useRouterStore()

useRouterStore(pinia?, hot?): Store<"routerStore", _UnwrapAll<Pick<object, "router">>, Pick<object, never>, Pick<object, never>>

Returns a store, creates it if necessary.

Parameters

pinia?: null | Pinia

Pinia instance to retrieve the store

hot?: StoreGeneric

dev only hot module replacement

Returns

Store<"routerStore", _UnwrapAll<Pick<object, "router">>, Pick<object, never>, Pick<object, never>>

Defined in

packages/valaxy/client/stores/router.ts:4