Skip to content

fix(core): ensures triggers fire properly with lazy loaded routes - #60099

Closed
thePunderWoman wants to merge 1 commit into
angular:mainfrom
thePunderWoman:immediate-route
Closed

thePunderWoman wants to merge 1 commit into
angular:mainfrom
thePunderWoman:immediate-route

Conversation

@thePunderWoman

@thePunderWoman thePunderWoman commented Feb 25, 2025 •

Copy link
Copy Markdown
Contributor

In the case that a route was lazy loaded, the immediate and viewport triggers would never properly finish hydrating due to things firing in a different order. This ensures app stability is present with both immediate and viewport triggers and that the promise for the defer block is present at the right time.

fixes #59997

Does this PR introduce a breaking change?

  • Yes
  • No

@thePunderWoman thePunderWoman added area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release labels Feb 25, 2025
@ngbot ngbot Bot added this to the Backlog milestone Feb 25, 2025
@thePunderWoman
thePunderWoman force-pushed the immediate-route branch 3 times, most recently from b64010b to 9a7c00d Compare February 25, 2025 18:08
@thePunderWoman
thePunderWoman marked this pull request as ready for review February 25, 2025 18:11
@thePunderWoman thePunderWoman added the action: review The PR is still awaiting reviews from at least one requested reviewer label Feb 25, 2025
…routes

In the case that a route was lazy loaded, the immediate trigger would never properly finish hydrating due to things firing in a different order. This ensures app stability is present with immediate triggers and that the promise for the defer block is present at the right time.
fixes angular#59997
@thePunderWoman thePunderWoman changed the title fix(core): ensures immediate trigger fires properly with lazy loaded routes fix(core): ensures triggers fire properly with lazy loaded routes Feb 25, 2025
@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 6, 2025
@thePunderWoman
thePunderWoman deleted the immediate-route branch May 23, 2025 13:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer 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 on immediate) is never triggered on a routed component

1 participant