Skip to content

UseShellConfigOptions

Defined in: src/ui/shell.tsx:48

Options for useShellConfig.

Type Parameter
C extends ShellConfigBase
Property Type Description Defined in
bootstrap? Partial<C> The bootstrap config (see readConfigGlobal); used until /config answers. src/ui/shell.tsx:52
forcePortal? boolean Render the portal chrome regardless of /config (the token embed). src/ui/shell.tsx:58
getConfig () => Promise<C> Fetch /config (the product’s API function). src/ui/shell.tsx:50
isPortal? (config) => boolean How a config says “portal”; default: portal === true or mode === "portal". src/ui/shell.tsx:65
queryKey? readonly unknown[] Query key; ["config"] by default. src/ui/shell.tsx:54
staleTime? number Stale time in ms; 60 s by default. src/ui/shell.tsx:56
token? string | null The portal/viewer token attached to the API client, if any. A token means portal even before (or when) /config fails, so no admin request fires for a token holder. src/ui/shell.tsx:63