Access the loading state of a component

Hello,

I want to access the loading state of an output component. is it possible

@app.callback(Output(“loading-output-1”, “figure”), [Input(“input-1”, “value”)])
def input_triggers_spinner(value):
# here something like dcc.Graph(“loading-output-1”, “figure”).loading_state
time.sleep(1)
return value

2 Likes