Directus / @directus/stores / useAppStore
Function: useAppStore() ​
useAppStore(
pinia
?,hot
?):Store
<"appStore"
,_UnwrapAll
<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
• hot?: StoreGeneric
Returns ​
Store
<"appStore"
, _UnwrapAll
<Pick
<Object
, "navbarOpen"
| "sidebarOpen"
| "notificationsDrawerOpen"
| "fullScreen"
| "hydrated"
| "hydrating"
| "error"
| "authenticated"
| "accessTokenExpiry"
| "basemap"
>>, Pick
<Object
, never
>, Pick
<Object
, never
>>