dash-extensions icon indicating copy to clipboard operation
dash-extensions copied to clipboard

Achieve loading cached data and cache data back within a callback

Open Skumarr53 opened this issue 4 years ago • 1 comments

Thanks for open-sourcing this project. It helped me a lot.

I am trying to build a dashboard that requires data (pandas df) to be shared across callbacks. In one such callback, input data (cached) needs to be transformed based on the client's selected option and cache back this data. The transformed output at the current step becomes the input data for the next step trigged by the click action.

If I understood correctly, cc.cached_callback is used only to cache data and app.callback to load cached data.

In my case, I want to load cached data and cache back the transformed data within the same callback.

Any advice or guidance in this matter would be greatly appreciated.

Skumarr53 avatar May 23 '21 16:05 Skumarr53

It is not clear to me what you are trying to do. And your code reference is to an old syntax. Please take a look at the current syntax (read me, examples, ...).

emilhe avatar May 26 '21 09:05 emilhe