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
Using id as a key within a component's id breaks the new callback context's args_grouping function. An example of a component within my use cases looks like:
Output Traceback from Error (apologies, I've had to hide some personal file paths):
Traceback (most recent call last):
File ".....", line 172, in update_graph
pprint(ctx.args_grouping)
File "/Users/...../.venv_core/lib/python3.9/site-packages/dash/_callback_context.py", line 18, in assert_context
return func(*args, **kwargs)
File "/Users/...../.venv/lib/python3.9/site-packages/dash/_callback_context.py", line 182, in args_grouping
recursive_update(grouping)
File "/Users/...../.venv/lib/python3.9/site-packages/dash/_callback_context.py", line 180, in recursive_update
recursive_update(i)
File "/Users/...../.venv/lib/python3.9/site-packages/dash/_callback_context.py", line 179, in recursive_update
update_args_grouping(i)
File "/Users/...../.venv/lib/python3.9/site-packages/dash/_callback_context.py", line 157, in update_args_grouping
prop_id = f"{str_id}.{g['property']}"
KeyError: 'property'
Expected behavior
The ability to use any key within a pattern matching ID and still have args grouping working or this limitation documented within the Dash Docs. Current documentation recommends using type, index or id as keys for readability, so this would need to change.
The text was updated successfully, but these errors were encountered:
Describe your context
Currently running on Python 3.9.10 on MacOS Monterey (12.3.1) with the below dash libraries installed
Describe the bug
Using
id
as a key within a component's id breaks the new callback context'sargs_grouping
function. An example of a component within my use cases looks like:and the callback Input looks like:
Output Traceback from Error (apologies, I've had to hide some personal file paths):
Expected behavior
The ability to use any key within a pattern matching ID and still have args grouping working or this limitation documented within the Dash Docs. Current documentation recommends using
type
,index
orid
as keys for readability, so this would need to change.The text was updated successfully, but these errors were encountered: