Skip to content

BootSpaOptions

Defined in: src/ui/boot.tsx:45

Options for bootSpa.

Type Parameter Default type
P extends object object
Property Type Description Defined in
api? Pick<ApiClient, "setApiToken"> The product’s API client (for the token). src/ui/boot.tsx:58
App ComponentType<ShellAppProps & P> The product’s root component. src/ui/boot.tsx:47
appProps? P Extra props for App. src/ui/boot.tsx:60
configGlobal string The global the panel handler injects ("__WEBHOOKS_CONFIG__"); its basePath is the router base. src/ui/boot.tsx:49
queryClient? QueryClient Bring your own QueryClient. src/ui/boot.tsx:64
root? string | HTMLElement The mount element or its id; "root" by default. src/ui/boot.tsx:62
strictMode? boolean Wrap in React.StrictMode; default true. src/ui/boot.tsx:66
themeKey string | ThemeStore The theme storage key ("xtandard-webhooks:theme"), or an existing store. src/ui/boot.tsx:51
tokenFromUrl? boolean Take a portal token from #token=/?token=, strip it from the address bar, and attach it to api. Needs api. Default false (products without a portal). src/ui/boot.tsx:56