How does the dcc.Store work?

how does the dcc.Store work?

I have a scenario let’s make it very simply.
I have a dcc.Store, I want to check if I have the data in it else I will run some computation and will store the data .

so for this scenario, I will have a Output and State in callback with same store id and store property (data)

but it’s not working, and I don’t see anything regarding the same in documentation.

anyone can help?

Could you prepare a minimal app.py application example for the described scenario?

What should trigger this callback logic? Is it after the dashboard loaded, based on user interaction? Or do you want the store to be autofilled on dashboard startup?