Skip to content

Function: useSiteStore()

useSiteStore(pinia?, hot?): Store<"site", Pick<{ postList: ComputedRef<Partial<PostFrontMatter>[]>; }, never>, Pick<{ postList: ComputedRef<Partial<PostFrontMatter>[]>; }, "postList">, Pick<{ postList: ComputedRef<Partial<PostFrontMatter>[]>; }, never>>

Defined in: packages/valaxy/client/stores/site.ts:13

cache site global store

  • post
  • tag
  • category

Parameters

pinia?

Pinia instance to retrieve the store

null | Pinia

hot?

StoreGeneric

dev only hot module replacement

Returns

Store<"site", Pick<{ postList: ComputedRef<Partial<PostFrontMatter>[]>; }, never>, Pick<{ postList: ComputedRef<Partial<PostFrontMatter>[]>; }, "postList">, Pick<{ postList: ComputedRef<Partial<PostFrontMatter>[]>; }, never>>