Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(core): produce an error when incremental hydration is expected, but not configured #61741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

AndrewKushnir
Copy link
Contributor

This commit updates runtime logic to produce an error when there are some @defer blocks with hydrate triggers, but the incremental hydration is not enabled via withIncrementalHydration(). Previously the check was only detecting the case when withIncrementalHydration() is present on the server, but missing on the client. With the change in this commit, the check would be performed on the server as well.

PR Type

What kind of change does this PR introduce?

  • Bugfix

Does this PR introduce a breaking change?

  • Yes
  • No

…ut not configured

This commit updates runtime logic to produce an error when there are some `@defer` blocks with `hydrate` triggers, but the incremental hydration is not enabled via `withIncrementalHydration()`. Previously the check was only detecting the case when `withIncrementalHydration()` is present on the server, but missing on the client. With the change in this commit, the check would be performed on the server as well.
@AndrewKushnir AndrewKushnir added 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 core: incremental hydration labels May 29, 2025
@ngbot ngbot bot modified the milestone: Backlog May 29, 2025
Copy link
Contributor

@thePunderWoman thePunderWoman left a comment

Choose a reason for hiding this comment

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

LGTM!

@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 May 29, 2025
@AndrewKushnir
Copy link
Contributor Author

Presubmit.

@AndrewKushnir AndrewKushnir added action: merge The PR is ready for merge by the caretaker and removed action: presubmit The PR is in need of a google3 presubmit labels May 29, 2025
@kirjs
Copy link
Contributor

kirjs commented May 30, 2025

This PR was merged into the repository by commit 5fce27d.

The changes were merged into the following branches: main, 20.0.x

kirjs pushed a commit that referenced this pull request May 30, 2025
…ut not configured (#61741)

This commit updates runtime logic to produce an error when there are some `@defer` blocks with `hydrate` triggers, but the incremental hydration is not enabled via `withIncrementalHydration()`. Previously the check was only detecting the case when `withIncrementalHydration()` is present on the server, but missing on the client. With the change in this commit, the check would be performed on the server as well.

PR Close #61741
@kirjs kirjs closed this in 5fce27d May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime core: incremental hydration target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants