Global loading state

Is it possible to connect the update_title to work with dcc.Loading. SO that the loading shows as long as dash is updating any component?
To clarify: i would like there to be a visble loading component that is visible as long as dash is processing information.

@app.callback(
Output(component_id=‘loading-output-1’, component_property=‘children’),
[Input(component_id=‘cl’, component_property=‘data’)]
)
def showspinner(value):
time.sleep(0.2)
return ‘’

So far i have this. But i want to avoid having every component as an input. Is there a way compact way of doing this?

1 Like

any solution, bro?