Function: useAppStore()
useAppStore(
pinia
?,hot
?):Store
<"app"
,_UnwrapAll
<Pick
<object
,"isMobile"
|"showLoading"
|"isRightSidebarOpen"
>>,Pick
<object
,"isDark"
|"themeColor"
>,Pick
<object
,"toggleDark"
|"toggleDarkWithTransition"
|"toggleRightSidebar"
>>
Global store for users
Parameters
• pinia?: null
| Pinia
Pinia instance to retrieve the store
• hot?: StoreGeneric
dev only hot module replacement
Returns
Store
<"app"
, _UnwrapAll
<Pick
<object
, "isMobile"
| "showLoading"
| "isRightSidebarOpen"
>>, Pick
<object
, "isDark"
| "themeColor"
>, Pick
<object
, "toggleDark"
| "toggleDarkWithTransition"
| "toggleRightSidebar"
>>
Example
ts
import { useAppStore } from 'valaxy'
const appStore = useAppStore()