Skip to content

refactor(core): Add hydration for components that were lazy loaded#49505

Closed
jessicajaniuk wants to merge 2 commits into
angular:mainfrom
jessicajaniuk:hydration-lazy
Closed

refactor(core): Add hydration for components that were lazy loaded#49505
jessicajaniuk wants to merge 2 commits into
angular:mainfrom
jessicajaniuk:hydration-lazy

Conversation

@jessicajaniuk

@jessicajaniuk jessicajaniuk commented Mar 20, 2023

Copy link
Copy Markdown
Contributor

This ensures that hydration still happens on components that were set up to lazy load through the router. Hydration will happen after the component has finished loading.

PR Type

What kind of change does this PR introduce?

  • Refactoring (no functional changes, no api changes)

Does this PR introduce a breaking change?

  • Yes
  • No

@jessicajaniuk jessicajaniuk added action: review The PR is still awaiting reviews from at least one requested reviewer area: core Issues related to the framework runtime target: major This PR is targeted for the next major release labels Mar 20, 2023
@ngbot ngbot Bot modified the milestone: Backlog Mar 20, 2023
@AndrewKushnir AndrewKushnir changed the title Hydration lazy refactor(core): Add hydration for components that were lazy loaded Mar 20, 2023
@jessicajaniuk jessicajaniuk force-pushed the hydration-lazy branch 6 times, most recently from cb5eb22 to 5c9652f Compare March 21, 2023 00:32
@AndrewKushnir

AndrewKushnir commented Mar 21, 2023

Copy link
Copy Markdown
Contributor

thePunderWoman and others added 2 commits March 21, 2023 19:59
This ensures that hydration still happens on components that were set up to lazy load through the router. Hydration will happen after the component has finished loading.
@AndrewKushnir

Copy link
Copy Markdown
Contributor

FYI, just discussed with @pkozlowski-opensource and @atscott: the proposal is to find a better way to capture the fact that some components were instantiated after the initial rendering. We can try to do it in a more automatic way, so that there is no need to give "hints" to the hydration logic explicitly (via public API).

@AndrewKushnir AndrewKushnir added state: blocked and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 22, 2023
@AndrewKushnir

Copy link
Copy Markdown
Contributor

Closing in favor of #49576, which would not require any changes to the public API surface.

@jessicajaniuk jessicajaniuk deleted the hydration-lazy branch April 5, 2023 15:00
@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 May 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: core Issues related to the framework runtime core: hydration state: blocked target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants