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 }}
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Update the children property of a dcc.Tabs component with a new list of dcc.Tab instances.
to work is a bit trickier - the dcc.Tabs component can't have it's children undefined it seems!
For me when I generate children of a html.Div, that have multiple dcc.Tabs, dynamically with callback for each (dynamic tabs) and then try to change the children of that container html.Div it fails to replace it, throwing in front:
Uncaught (in promise) TypeError: Cannot read property 'props' of undefined
at t.value (bundle.js?v=0.27.1:27)
at p._renderValidatedComponentWithoutOwnerOrContext (react-dom@15.4.2.min.js?v=0.13.2:13)
at p._renderValidatedComponent (react-dom@15.4.2.min.js?v=0.13.2:13)
at p._updateRenderedComponent (react-dom@15.4.2.min.js?v=0.13.2:13)
at p._performComponentUpdate (react-dom@15.4.2.min.js?v=0.13.2:13)
at p.updateComponent (react-dom@15.4.2.min.js?v=0.13.2:13)
at p.receiveComponent (react-dom@15.4.2.min.js?v=0.13.2:13)
at Object.receiveComponent (react-dom@15.4.2.min.js?v=0.13.2:14)
at p._updateRenderedComponent (react-dom@15.4.2.min.js?v=0.13.2:13)
at p._performComponentUpdate (react-dom@15.4.2.min.js?v=0.13.2:13)
For me it looks like the callback for dynamic tab content of the already removed dcc.Tabs is called and it fails, as there is not dcc.Tabs to have value for that callback.
If the callback returns more dcc.Tabs than there was (adding some) then there is no problem, error is only thrown when some of the dcc.Tabs are missing in new children of the container.
@chriddyp doesn't #267 resolve the issues? What is stopping merge of those fixes? That issue really stops my Dash application development. Can I help in any way?
Activity
valentijnnieman commentedon Aug 16, 2018
I've confirmed that:
Example code
Works!
Getting
to work is a bit trickier - the
dcc.Tabscomponent can't have it'schildrenundefined it seems!radekwlsk commentedon Aug 17, 2018
For me when I generate
childrenof ahtml.Div, that have multipledcc.Tabs, dynamically with callback for each (dynamic tabs) and then try to change thechildrenof that containerhtml.Divit fails to replace it, throwing in front:For me it looks like the callback for dynamic tab content of the already removed
dcc.Tabsis called and it fails, as there is notdcc.Tabsto havevaluefor that callback.If the callback returns more
dcc.Tabsthan there was (adding some) then there is no problem, error is only thrown when some of thedcc.Tabsare missing in newchildrenof the container.radekwlsk commentedon Aug 21, 2018
@chriddyp doesn't #267 resolve the issues? What is stopping merge of those fixes? That issue really stops my Dash application development. Can I help in any way?
chriddyp commentedon Aug 21, 2018
In the meantime, can you use the other method for Tabs, that is, rendering the children through a callback? Method 1 here: https://dash.plot.ly/dash-core-components/tabs
valentijnnieman commentedon Aug 22, 2018
@radekwlsk #267 is merged and published as version 0.27.2!