Hi,
I want to share some pretty heavy data between the callbacks. For this I use dcc.Store with storage_type=“local”. It’s great. But the thing is that what I want to store depends on the value that I pick in the dropdown.
There is such an option for dropdowns - it’s enough to provide persistence condition (documentation)
But for the city they would like to see the same one as the last time they chose that country - just set
persistence=country_name
(wherecountry_name
is the value of the chosen country) on the city dropdown and we’ll save one preferred city for each country.
To use the example from the documentation - let’s say that I have a large dataset for each city. I don’t want to download it everytime I pick the city. If I looked into this city before and downloaded the data, I’d like my app to remember it.
I would appreciate any tips?