You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Data Table prevents other callbacks until it is rendered first #1105
Describe the bug
I was fixing a bug with Dash Bio app (Circos) and it had trouble rendering the Circos plot properly when starting a new session. The plot would not be visible until the user clicked on the 'Table' tab. Once this tab was triggered, then the plot would show up no matter which tab was clicked on.
I believe the callback that was responsible showing the plot was blocked because it relied on a table prop as an input. In 'Table' tab, the Circos app allows you to filter a plot (if nothing is selected, nothing is filtered) and it will be modified dynamically. The callback basically disregarded everything until this tab was clicked on. (Issue #1010 was fixed, but it was fixed for callbacks that do not use table props.)
In the Circos example, a table is used to filter a graph (if nothing is selected, nothing is filtered) but this is preventing the callback from being triggered by other inputs.
Expected behavior
I expected the app to show the plot right away without clicking on the 'Table' tab beforehand.
Screenshots
The (hack-y) solution to this problem was adding an empty DataTable before the dcc.Tabs component:
Activity
alexcjohnson commentedon Feb 29, 2020
@Marc-Andre-Rivet this looks like the same bug we were discussing that @christianwengert is running into
fix #1105 - isAppReady with an unrendered but in-layout async component
fix #1105 - isAppReady with an unrendered but in-layout async component
fix #1105 - isAppReady with an unrendered but in-layout async component