Skip to content

Add explicit change detection to all Angular components#726

Open
crisbeto wants to merge 1 commit intogoogle:mainfrom
crisbeto:change-detection-eager
Open

Add explicit change detection to all Angular components#726
crisbeto wants to merge 1 commit intogoogle:mainfrom
crisbeto:change-detection-eager

Conversation

@crisbeto
Copy link
Collaborator

We're in the process of changing Angular's default change detection from Eager to OnPush. These changes update all existing A2UI code to explicitly set Eager so that it doesn't break when the default is flipped. I've also updated to the latest stable version of Angular.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates Angular dependencies and explicitly sets the change detection strategy to Eager for all components to prepare for a future change in Angular's default strategy. The changes are extensive and have been applied consistently across the codebase. I've found one inconsistency in the updated dependency versions in package.json that should be addressed. I've also included a suggestion to consider using OnPush change detection for simpler components, which could be a performance improvement and a step towards the long-term goal of adopting OnPush.

We're in the process of changing Angular's default change detection from `Eager` to `OnPush`. These changes update all existing A2UI code to explicitly set `Eager` so that it doesn't break when the default is flipped. I've also updated to the latest stable version of Angular.
@crisbeto crisbeto force-pushed the change-detection-eager branch from 9f2f9ce to 2cd6ef5 Compare February 26, 2026 08:39
Copy link
Collaborator

@ava-cassiopeia ava-cassiopeia left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for converting these over!

gspencergoog added a commit to gspencergoog/A2UI that referenced this pull request Feb 26, 2026
@crisbeto crisbeto enabled auto-merge (squash) February 26, 2026 21:34
@crisbeto crisbeto disabled auto-merge February 26, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants