Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
saschaszott opened this issue Feb 5, 2025 · 0 comments
Labels
bug code task component: submission help wanted Needs a volunteer to claim to move forward

Comments

@saschaszott
Copy link
Contributor

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.

@saschaszott saschaszott added bug needs triage New issue needs triage and/or scheduling labels Feb 5, 2025
@github-project-automation github-project-automation bot moved this to 🆕 Triage in DSpace Backlog Feb 5, 2025
@tdonohue tdonohue added code task help wanted Needs a volunteer to claim to move forward component: submission and removed needs triage New issue needs triage and/or scheduling labels Feb 5, 2025
@tdonohue tdonohue removed this from DSpace Backlog Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug code task component: submission help wanted Needs a volunteer to claim to move forward
Projects
Development

No branches or pull requests

2 participants