ShellConfigState
Defined in: src/ui/shell.tsx:69
What useShellConfig returns.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
C extends ShellConfigBase |
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
adminReady |
boolean |
ready && !portal: the condition for admin-only queries (enabled: adminReady). |
src/ui/shell.tsx:86 |
config |
Partial<C> |
/config once loaded, the bootstrap before that. |
src/ui/shell.tsx:71 |
failed |
boolean |
/config failed and there is no bootstrap to fall back on: show an error screen. |
src/ui/shell.tsx:80 |
loading |
boolean |
/config is still loading and there is no bootstrap title to render the chrome with. |
src/ui/shell.tsx:78 |
portal |
boolean |
Portal chrome (forced, a token, or /config says so). |
src/ui/shell.tsx:82 |
query |
UseQueryResult<C> |
The underlying query. | src/ui/shell.tsx:88 |
readonly |
boolean |
Read-only panel. | src/ui/shell.tsx:84 |
ready |
boolean |
/config has answered. Gate the default route and admin queries on it: the bootstrap can’t know a portal principal, so rendering before it would fire requests a portal is denied. |
src/ui/shell.tsx:76 |