Skip to content

Function: useRouterStore()

useRouterStore(pinia?, hot?): Store<"routerStore", Pick<{ router: Router; }, "router">, Pick<{ router: Router; }, never>, Pick<{ router: Router; }, never>>

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

Returns a store, creates it if necessary.

Parameters

pinia?

Pinia instance to retrieve the store

null | Pinia

hot?

StoreGeneric

dev only hot module replacement

Returns

Store<"routerStore", Pick<{ router: Router; }, "router">, Pick<{ router: Router; }, never>, Pick<{ router: Router; }, never>>