Type alias LoadingIndicatorPhaseConfig
LoadingIndicatorPhaseConfig:
object
Loading indicator settings for one kind of load, the first one or a reload. See LoadingIndicatorConfig.
Example
Skeletons on reloads too, as on Sisense dashboards, and dots after one second on a first load:
<SisenseContextProvider
url={url}
token={token}
appConfig={{
loadingIndicatorConfig: {
initial: { type: 'dots', delay: 1000 },
refresh: { type: 'skeleton' },
},
}}
>
<App />
</SisenseContextProvider>
Type declaration
delay
delay?: number
Delay in milliseconds before the loading indicator is shown. Overrides the shared delay of LoadingIndicatorConfig.
type
type?: "dots" | "skeleton"
How the loading shows.
'skeleton' draws a placeholder shaped like the chart type, which covers the chart while it reloads. 'dots' shows three animated dots, with a reloading chart visible underneath.