Skip to content

refactor(platform-browser): log a warning when a custom or a noop ZoneJS is used with hydration#49944

Closed
AndrewKushnir wants to merge 1 commit into
angular:mainfrom
AndrewKushnir:hydration-zonejs-check
Closed

refactor(platform-browser): log a warning when a custom or a noop ZoneJS is used with hydration#49944
AndrewKushnir wants to merge 1 commit into
angular:mainfrom
AndrewKushnir:hydration-zonejs-check

Conversation

@AndrewKushnir
Copy link
Copy Markdown
Contributor

Hydration relies on a signal from ZoneJS when it becomes stable inside an application, so that Angular can start serialization process on the server or post-hydration cleanup on the client (to remove DOM nodes that remained unclaimed).

Providing a custom or a "noop" ZoneJS implementation may lead to a different timing of the "stable" event, thus triggering the serialization or the cleanup too early or too late. This is not yet a fully supported configuration.

This commit adds a warning (non-blocking) for those cases.

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

@AndrewKushnir AndrewKushnir added state: WIP area: core Issues related to the framework runtime target: rc This PR is targeted for the next release-candidate core: hydration labels Apr 20, 2023
@ngbot ngbot Bot modified the milestone: Backlog Apr 20, 2023
Comment thread aio/content/errors/NG5000.md Outdated
Comment thread aio/content/errors/NG5000.md Outdated
@AndrewKushnir AndrewKushnir force-pushed the hydration-zonejs-check branch 2 times, most recently from e99a0ae to 60e7a66 Compare April 20, 2023 23:41
@AndrewKushnir AndrewKushnir added action: review The PR is still awaiting reviews from at least one requested reviewer and removed state: WIP labels Apr 20, 2023
@AndrewKushnir AndrewKushnir marked this pull request as ready for review April 20, 2023 23:42
Copy link
Copy Markdown
Contributor

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

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

LGTM, just some additional grammer fixes.

Comment thread aio/content/guide/hydration.md Outdated
Comment thread aio/content/guide/hydration.md Outdated
Copy link
Copy Markdown
Contributor

@jessicajaniuk jessicajaniuk left a comment

Choose a reason for hiding this comment

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

LGTM!

reviewed-for: fw-animations, fw-core, fw-platform-server, public-api

@jessicajaniuk jessicajaniuk removed their request for review April 21, 2023 20:22
@pullapprove pullapprove Bot requested a review from alxhub April 21, 2023 20:22
…eJS is used with hydration

Hydration relies on a signal from ZoneJS when it becomes stable inside an application, so that Angular can start serialization process on the server or post-hydration cleanup on the client (to remove DOM nodes that remained unclaimed).

Providing a custom or a "noop" ZoneJS implementation may lead to a different timing of the "stable" event, thus triggering the serialization or the cleanup too early or too late. This is not yet a fully supported configuration.

This commit adds a warning (non-blocking) for those cases.
@AndrewKushnir AndrewKushnir force-pushed the hydration-zonejs-check branch from 60e7a66 to a31279f Compare April 21, 2023 23:13
@AndrewKushnir AndrewKushnir added action: presubmit The PR is in need of a google3 presubmit and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Apr 21, 2023
@AndrewKushnir
Copy link
Copy Markdown
Contributor Author

Presubmit.

@AndrewKushnir AndrewKushnir added action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note and removed action: presubmit The PR is in need of a google3 presubmit labels Apr 21, 2023
@AndrewKushnir
Copy link
Copy Markdown
Contributor Author

Caretaker note: presubmit is "green" (only pre-existing failing targets).

@dylhunn
Copy link
Copy Markdown
Contributor

dylhunn commented Apr 24, 2023

This PR was merged into the repository by commit 3bcbfec.

dylhunn pushed a commit that referenced this pull request Apr 24, 2023
…eJS is used with hydration (#49944)

Hydration relies on a signal from ZoneJS when it becomes stable inside an application, so that Angular can start serialization process on the server or post-hydration cleanup on the client (to remove DOM nodes that remained unclaimed).

Providing a custom or a "noop" ZoneJS implementation may lead to a different timing of the "stable" event, thus triggering the serialization or the cleanup too early or too late. This is not yet a fully supported configuration.

This commit adds a warning (non-blocking) for those cases.

PR Close #49944
@dylhunn dylhunn closed this in 3bcbfec Apr 24, 2023
@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 25, 2023
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 core: hydration merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants