What's the reason the state might be empyt?

I am pulling the figure in a callback with the code “State(‘chartId’, ‘figure’)” and I keep getting back an empty state. I tried to make a separate callback that saves the figure to a cached dcc.store object and then pulls from that instead.

What’s the reason the state might not have the figure?

Hello @ibenok,

Are you running your app in debug=True?


This will allow you to see errors easily, such as the id doesnt exist, etc.

It’s odd because it works sometimes, but doesn’t work other times. It is in a callback that gets fired by an interval component that triggers every n seconds. In either case, I will try adding debug = true and see what it says.

(Specifically, the callback fires but the fig object is None)

1 Like