For array-type properties where individual elements are of type exact or shape, and each element accepts component-type sub-properties, assigning None to this array property can lead to some vague error messages. For example, with dcc.Dropdown:
import dash
from dash import html, dcc
app = dash.Dash(__name__)
app.layout = html.Div(
[
dcc.Dropdown(
placeholder="Currently, there are no selectable options", options=None
)
],
style={"padding": 50},
)
if __name__ == "__main__":
app.run(debug=True)
For array-type properties where individual elements are of type
exact
orshape
, and each element accepts component-type sub-properties, assigningNone
to this array property can lead to some vague error messages. For example, withdcc.Dropdown
: