Directus / @directus/stores / useAppStore
Function: useAppStore() ​
useAppStore(
pinia
?,hot
?):Store
<"appStore"
,Pick
<object
,"navbarOpen"
|"sidebarOpen"
|"notificationsDrawerOpen"
|"fullScreen"
|"hydrated"
|"hydrating"
|"error"
|"authenticated"
|"accessTokenExpiry"
|"basemap"
>,Pick
<object
,never
>,Pick
<object
,never
>>
Global application state
Parameters ​
• pinia?: null
| Pinia
Pinia instance to retrieve the store
• hot?: StoreGeneric
dev only hot module replacement
Returns ​
Store
<"appStore"
, Pick
<object
, "navbarOpen"
| "sidebarOpen"
| "notificationsDrawerOpen"
| "fullScreen"
| "hydrated"
| "hydrating"
| "error"
| "authenticated"
| "accessTokenExpiry"
| "basemap"
>, Pick
<object
, never
>, Pick
<object
, never
>>