Skip to content

fix(core): initialize hydration triggers after late runtime activation - #69920

Merged
thePunderWoman merged 1 commit into
angular:mainfrom
SkyZeroZx:fix-hydrate
Jul 31, 2026
Merged

thePunderWoman merged 1 commit into
angular:mainfrom
SkyZeroZx:fix-hydrate

Conversation

@SkyZeroZx

Copy link
Copy Markdown
Contributor

After incremental hydration became tree-shakable, application bootstrap could finish before a routed component activated the runtime. The one-time trigger scan was then skipped, leaving routed and nested hydration triggers uninitialized.

Coordinate application bootstrap with runtime activation and initialize once both have occurred.

Fixes #69908

@pullapprove
pullapprove Bot requested a review from atscott July 24, 2026 05:22
@angular-robot angular-robot Bot added the area: core Issues related to the framework runtime label Jul 24, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jul 24, 2026
After incremental hydration became tree-shakable, application bootstrap could finish before a routed component activated the runtime. The one-time trigger scan was then skipped, leaving routed and nested hydration triggers uninitialized.

Coordinate application bootstrap with runtime activation and initialize once both have occurred.

Fixes angular#69908
@SkyZeroZx SkyZeroZx changed the title fix(core): initialize incremental hydration for routed views fix(core): initialize hydration triggers after late runtime activation Jul 24, 2026
@JeanMeche
JeanMeche requested a review from thePunderWoman July 30, 2026 15:01

@thePunderWoman thePunderWoman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Thanks for the fix!

@thePunderWoman
thePunderWoman removed the request for review from atscott July 31, 2026 17:57
@thePunderWoman thePunderWoman added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Jul 31, 2026
@thePunderWoman
thePunderWoman merged commit cfe2cda into angular:main Jul 31, 2026
23 checks passed
@thePunderWoman

Copy link
Copy Markdown
Contributor

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

@angular-automatic-lock-bot

Copy link
Copy Markdown

This pull request 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 Oct 19, 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: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incremental hydration: @defer (hydrate ...) never triggers in a routed component (regression of #59997)

2 participants