Skip to content
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

Move unstable_scheduleHydration to ReactDOMHydrationRoot #22455

Merged
merged 8 commits into from
Nov 15, 2021

Conversation

salazarm
Copy link
Contributor

Summary

Moving unstable_scheduleHydration to ReactDOMHydrationRoot to ensure that a root is created first before calling unstable_scheduleHydration

How did you test this change?

Updated jest tests

@facebook-github-bot facebook-github-bot added the React Core Team Opened by a member of the React Core Team label Sep 28, 2021
@sizebot
Copy link

sizebot commented Sep 28, 2021

Comparing: 96ca8d9...8523528

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js +0.23% 129.68 kB 129.98 kB +0.24% 41.46 kB 41.56 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js +0.06% 134.66 kB 134.74 kB +0.05% 42.94 kB 42.96 kB
facebook-www/ReactDOM-prod.classic.js +0.05% 424.11 kB 424.31 kB +0.03% 78.18 kB 78.20 kB
facebook-www/ReactDOM-prod.modern.js +0.05% 412.66 kB 412.87 kB +0.05% 76.43 kB 76.47 kB
facebook-www/ReactDOMForked-prod.classic.js +0.05% 424.11 kB 424.31 kB +0.03% 78.18 kB 78.20 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable-semver/react-dom/umd/react-dom.production.min.js +0.23% 129.82 kB 130.12 kB +0.19% 42.21 kB 42.29 kB
oss-stable/react-dom/umd/react-dom.production.min.js +0.23% 129.82 kB 130.12 kB +0.19% 42.21 kB 42.29 kB
oss-stable-semver/react-dom/cjs/react-dom.production.min.js +0.23% 129.68 kB 129.98 kB +0.24% 41.46 kB 41.56 kB
oss-stable/react-dom/cjs/react-dom.production.min.js +0.23% 129.68 kB 129.98 kB +0.24% 41.46 kB 41.56 kB
oss-stable-semver/react-dom/umd/react-dom.profiling.min.js +0.22% 138.76 kB 139.06 kB +0.24% 44.92 kB 45.02 kB
oss-stable/react-dom/umd/react-dom.profiling.min.js +0.22% 138.76 kB 139.06 kB +0.24% 44.92 kB 45.02 kB
oss-stable-semver/react-dom/cjs/react-dom.profiling.min.js +0.21% 139.26 kB 139.56 kB +0.25% 44.32 kB 44.43 kB
oss-stable/react-dom/cjs/react-dom.profiling.min.js +0.21% 139.26 kB 139.56 kB +0.25% 44.32 kB 44.43 kB

Generated by 🚫 dangerJS against 8523528

…hrough index.stable.js because its exposed through ReactDOMHydrationRoot instead of the ReactDOM package
@gaearon
Copy link
Collaborator

gaearon commented Nov 15, 2021

do you do a sync right after so we don't miss the change internally?

@salazarm salazarm merged commit 4ff5f57 into facebook:main Nov 15, 2021
@salazarm salazarm deleted the moveUnstableScheduleHydration branch February 10, 2022 14:27
zhengjitf pushed a commit to zhengjitf/react that referenced this pull request Apr 15, 2022
)

* move unstable_scheduleHydration to ReactDOMHydrationRoot

* move definition of schedule hydration

* fix test?

* prototype

* fix test

* remove gating because unstable_scheduleHydration is no longer gated through index.stable.js because its exposed through ReactDOMHydrationRoot instead of the ReactDOM package

* remove another gating
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants