Skip to content

Variable: useAppStore

const useAppStore: StoreDefinition<"app", Pick<{ isDark: WritableComputedRef<boolean, boolean>; isMobile: Ref<boolean, boolean>; showLoading: Ref<boolean, boolean>; showToggleLocale: ComputedRef<boolean>; themeColor: ComputedRef<string>; toggleDark: (value?) => boolean; toggleDarkWithTransition: (event, options) => void; }, "isMobile" | "showLoading">, Pick<{ isDark: WritableComputedRef<boolean, boolean>; isMobile: Ref<boolean, boolean>; showLoading: Ref<boolean, boolean>; showToggleLocale: ComputedRef<boolean>; themeColor: ComputedRef<string>; toggleDark: (value?) => boolean; toggleDarkWithTransition: (event, options) => void; }, "themeColor" | "isDark" | "showToggleLocale">, Pick<{ isDark: WritableComputedRef<boolean, boolean>; isMobile: Ref<boolean, boolean>; showLoading: Ref<boolean, boolean>; showToggleLocale: ComputedRef<boolean>; themeColor: ComputedRef<string>; toggleDark: (value?) => boolean; toggleDarkWithTransition: (event, options) => void; }, "toggleDark" | "toggleDarkWithTransition">>

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

Global store for users

Example

ts
import { useAppStore } from 'valaxy'
const appStore = useAppStore()