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
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.
The text was updated successfully, but these errors were encountered:
Problem Description
DsDynamicFormControlContainerComponent
implements bothDoCheck
andOnChanges
:dspace-angular/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.ts
Line 320 in 0649342
dspace-angular/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.ts
Line 308 in 0649342
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.The text was updated successfully, but these errors were encountered: