Skip to content

DsDynamicFormControlContainerComponent: Implementing both DoCheck and OnChanges is not recommended #3956

Open
@saschaszott

Description

@saschaszott

Problem Description

DsDynamicFormControlContainerComponent implements both DoCheck and OnChanges:

Implementing both lifecycle hooks in a component triggers an ESLint warning: Implementing DoCheck and OnChanges in a class is not recommended.

OnChanges is triggered only when @Input() properties change, making it more efficient. DoCheck runs on every change detection cycle, which can lead to unnecessary performance overhead. Using both together can cause redundant checks and inefficiencies.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    📋 To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions