duck.html.components.core.warnings¶
Warnings for HTML components.
Module Contents¶
API¶
- exception duck.html.components.core.warnings.DeeplyNestedEventBindingWarning[source]¶
Bases:
UserWarningWarning indicating that a component has event bindings and is deeply nested in the DOM or component tree.
This warning is triggered when a component with event listeners is placed at a deep nesting level (e.g., level 6 or greater). Deeply nested event bindings may result in slower updates or degraded performance due to increased layout, paint, or event propagation costs. Consider refactoring to reduce nesting or optimize event handling.
- Parameters:
message – The warning message to display.
Initialization
Initialize self. See help(type(self)) for accurate signature.
- exception duck.html.components.core.warnings.RedundantUpdateWarning[source]¶
Bases:
UserWarningFlagged when redundant update targets conflict due to shared parent; this may result in inefficiencies rather than updating the parent in one goal instead.
Initialization
Initialize self. See help(type(self)) for accurate signature.