We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03db150 commit 342b474Copy full SHA for 342b474
src/idom/core/vdom.py
@@ -329,9 +329,11 @@ def _is_single_child(value: Any) -> bool:
329
)
330
else:
331
for child in value:
332
- if (isinstance(child, ComponentType) and child.key is None) or (
333
- isinstance(child, Mapping) and "key" not in child
334
- ):
+ if isinstance(child, ComponentType) and child.key is None:
335
logger.error(f"Key not specified for child in list {child}")
+ elif isinstance(child, Mapping) and "key" not in child:
+ # remove 'children' to reduce log spam
336
+ child_copy = {**child, "children": ...}
337
+ logger.error(f"Key not specified for child in list {child_copy}")
338
339
return False
0 commit comments