johnwp
April 3, 2023, 10:41pm
#1
Hi Retool,
I have a JavaScript query that polls temporary state every 5 seconds.
Every 5 seconds, a page loading indicator appears for a split second, which may interrupt/concern/confuse the user.
Is there any way to disable to the page loading indicator altogether for a given JavaScript query?
Thanks for your help!
johnwp
April 3, 2023, 11:23pm
#2
Never mind, I figured it out.
Solution was to uncheck "Hoist loading state" from the parent component.
bg1900
May 24, 2023, 11:48am
#3
I am having a similar issue with a chart that loads based on a query.
Was your issue with a chart, table or something else?
I don’t see a ‘hoist loading state’ option for charts
Hey @bg1900 ! To clarify, you'd like to disable the loading indicator for the chart?
bg1900
May 26, 2023, 7:39pm
#5
yes exactly that @victoria
johnwp
May 26, 2023, 7:56pm
#6
The "Hoist loading state" option should be on a parent component, not on a chart component.
bg1900
May 27, 2023, 1:09pm
#7
Yes I see. So then it is not possible to disable it for a chart component itself in any way ?
bg1900
May 29, 2023, 5:29pm
#8
If I had the data loaded from two separate queries and alternated which query part of the chart came from every few seconds would that stop the loading indicator?
johnwp
June 2, 2023, 6:58pm
#9
Try enabling this on the parent component. This should prevent child components from displaying a loading indicator.
1 Like