Black Lives Matter. Please consider donating to Black Girls Code today.

Passing dictionary error

are we not allowed to pass a dictionary to a callback?

i have a dictionary from “children” in an html.Div and trying to pass it as input but i am getting ‘component.type is undefined’ and can’t load dependencies errors, what am i doing wrong?

Yeah, children needs to be a string, number, dash component, or a list of those. If you want to pass data around, use the new dcc.Store component (tracking documentation here: or convert your dict to a string with json.dumps(your_dict) (and back to a python dict with json.loads(your_stringified_dict)

1 Like

awesome, thank you for your help and for this amazing framework