-
-
Notifications
You must be signed in to change notification settings - Fork 143
dcc.Store modified_timestamp property causing infinite loop in callback #408
Comments
Can you list the versions used ? |
No problem:
|
I can't find a minimal example (apologies), but I think I've also encountered this, trying to use dcc.Store following the same recipe caused my Dash app to stop rendering until I removed the Store from my layout completely. No error was shown. This was on Safari 12.0, dash==0.35.1, dash-core-components==0.42.1, dash-html-components==0.13.4, dash-renderer==0.16.1, running the app in debug mode. |
Having the same issue, detailed it plotly/dash#745 EDIT: For anyone else having this issue, check out plotly/dash#680 for |
FWIW in Dash v1.11 we substantially reworked callback handling, and one of the effects of this is that it's harder to generate infinite loops. It's not impossible, in particular |
I discovered what appears to be a bug after trying and failing to adapt the "Generic Crossfilter Recipe" found here https://dash.plot.ly/interactive-graphing such that the x and y axes of the scatter plots can be set dynamically with dcc.Dropdown components.
Here is the code to reproduce the infinite loop caused by dcc.Store's modified_timestamp property being used as an input in callbacks to update my scatter plots. Warning, running the below will cause an infinite loop so please be sure to stop the run and exit your tab/browser after running:
Besides the infinite loops, I've also noticed that the 'selectedData' property of dcc.Graph does not always trigger a callback when passed as an input. Additionally, the 'data' property of dcc.Store also doesn't trigger call backs when passed as an input.
The text was updated successfully, but these errors were encountered: