Passing list of component in dash component properties other than children

Hi Plotly team

I have been seeing errors when passing components in dash properties other than children. This happens only when I pass a list of components.

I created this GitHub issue a week ago. Is this something you guys will be looking at anytime soon?

In the latest dmc alpha (0.11.0a0), I dropped @Emil’s dash-extension solution for native dash solution to render components passed in component properties other than children but facing this issue.


Hi @snehilvj

As of Dash 2.5 it’s possible to have components in props other than children. An examples is having components in the labels for dcc.Dropdown

Have you checked out the instructions in the docs here: Component Properties | Dash for Python Documentation | Plotly

1 Like

Hi @AnnMarieW updated my post.
According to the documentation, a list of components is okay but that’s not working for dmc for the time being.

Thanks for reporting, @snehilvj.
One of our engineers said that:

It’s a bug in the renderer components as props, it only checks the first element in the list is a component so if it’s in second it errors

Should be an easy fix, and we’ll try fix that for next Dash release.

1 Like