Hi all,
I have a small question regarding dcc.Loading component. I’m exploring the usage of target_components to control what triggers the loading state.
We are working with dict id’s for pattern-matching callbacks, like:
{"id": "page-1", "type":"grid"}
However, how would I be able to use this in the target_components prop of dcc.Loading?
I tried working with a json.dumps(id)
, or passing the dict directly, but none of them work right now → loading state is not activated.
minimal example:
id_grid = {"id": "page-1", "type":"grid"}
dcc.Loading(
children=dag.agGrid(id=id_grid)
target_component={json.dumps(id_grid), "rowData"}
)