Skip to content

Eager Change Detection#32737

Merged
alan-agius4 merged 2 commits into
angular:mainfrom
alan-agius4:eager-change-detection
Mar 11, 2026
Merged

Eager Change Detection#32737
alan-agius4 merged 2 commits into
angular:mainfrom
alan-agius4:eager-change-detection

Conversation

@alan-agius4

Copy link
Copy Markdown
Collaborator

No description provided.

@alan-agius4 alan-agius4 requested a review from clydin March 10, 2026 14:46
@alan-agius4 alan-agius4 added the target: major This PR is targeted for the next major release label Mar 10, 2026
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Mar 10, 2026
….Default` with `Eager`

Updates the component schematic to use `ChangeDetectionStrategy.Eager` as
the default strategy and updates the allowed enum values in the schema,
as `ChangeDetectionStrategy.Default` is now deprecated.
@alan-agius4 alan-agius4 force-pushed the eager-change-detection branch from 9e37d7c to e2508f6 Compare March 10, 2026 15:16
…tectionStrategy.Eager`

`ChangeDetectionStrategy.Default` is deprecated. This update ensures the zoneless migration tool correctly identifies, handles, and prompts for the new `ChangeDetectionStrategy.Eager` strategy in component metadata.
@alan-agius4 alan-agius4 force-pushed the eager-change-detection branch from e2508f6 to 9ea5868 Compare March 10, 2026 15:46
},
"changeDetection": {
"description": "Configures the change detection strategy for the component.",
"enum": ["Default", "OnPush"],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we leave Default here until its removed on the framework side?

@alan-agius4 alan-agius4 Mar 10, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed it, cause the FW already did a migration to move all apps from using Default to Eager.

@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 11, 2026
@alan-agius4 alan-agius4 merged commit 93c3eb8 into angular:main Mar 11, 2026
36 checks passed
@alan-agius4

Copy link
Copy Markdown
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

@alan-agius4 alan-agius4 deleted the eager-change-detection branch March 11, 2026 12:33
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Apr 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/cli area: @schematics/angular target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants