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

[Fiber/DevTools] Stop injecting findHostInstanceByFiber #30519

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

sebmarkbage
Copy link
Collaborator

This is not used by DevTools since it has its own implementation of it.

This function is getting removed since findDOMNode is getting removed so we shouldn't keep around extra bytes unnecessarily.

There is also findHostInstancesForRefresh which should really be implemented on the react-refresh side. Not using an injection but that's a heavier lift and only affects __DEV__.

@sebmarkbage sebmarkbage requested a review from hoxyq July 29, 2024 22:23
Copy link

vercel bot commented Jul 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 29, 2024 10:27pm

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jul 29, 2024
@react-sizebot
Copy link

react-sizebot commented Jul 29, 2024

Comparing: 87b1a94...af3ca9d

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.js = 6.68 kB 6.68 kB = 1.83 kB 1.82 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 501.46 kB 501.29 kB = 89.98 kB 89.95 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 508.59 kB 508.41 kB = 91.15 kB 91.12 kB
facebook-www/ReactDOM-prod.classic.js = 596.53 kB 596.31 kB = 105.80 kB 105.76 kB
facebook-www/ReactDOM-prod.modern.js = 572.82 kB 572.61 kB = 102.01 kB 101.96 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
facebook-www/ReactART-dev.classic.js = 653.69 kB 650.27 kB = 105.20 kB 104.53 kB
facebook-www/ReactART-dev.modern.js = 630.33 kB 626.86 kB = 101.50 kB 100.75 kB
oss-experimental/react-art/cjs/react-art.development.js = 567.04 kB 563.57 kB = 91.88 kB 91.17 kB
oss-stable/react-art/cjs/react-art.development.js = 552.92 kB 549.45 kB = 90.00 kB 89.32 kB
oss-stable-rc/react-art/cjs/react-art.development.js = 552.87 kB 549.40 kB = 89.98 kB 89.30 kB
oss-stable-semver/react-art/cjs/react-art.development.js = 552.87 kB 549.40 kB = 89.98 kB 89.30 kB
facebook-www/ReactART-prod.modern.js = 348.59 kB 346.21 kB = 59.59 kB 59.04 kB
facebook-www/ReactART-prod.classic.js = 365.88 kB 363.20 kB = 62.34 kB 61.80 kB
oss-experimental/react-art/cjs/react-art.production.js = 301.33 kB 298.95 kB = 52.18 kB 51.64 kB
oss-stable/react-art/cjs/react-art.production.js = 294.40 kB 292.01 kB = 50.98 kB 50.43 kB
oss-stable-rc/react-art/cjs/react-art.production.js = 294.35 kB 291.97 kB = 50.96 kB 50.41 kB
oss-stable-semver/react-art/cjs/react-art.production.js = 294.35 kB 291.97 kB = 50.96 kB 50.41 kB

Generated by 🚫 dangerJS against f3d2e65

@sebmarkbage sebmarkbage merged commit bea5a2b into facebook:main Jul 30, 2024
185 checks passed
github-actions bot pushed a commit that referenced this pull request Jul 30, 2024
This is not used by DevTools since it has its own implementation of it.

This function is getting removed since `findDOMNode` is getting removed
so we shouldn't keep around extra bytes unnecessarily.

There is also `findHostInstancesForRefresh` which should really be
implemented on the `react-refresh` side. Not using an injection but
that's a heavier lift and only affects `__DEV__`.

DiffTrain build for commit bea5a2b.
github-actions bot pushed a commit that referenced this pull request Jul 30, 2024
This is not used by DevTools since it has its own implementation of it.

This function is getting removed since `findDOMNode` is getting removed
so we shouldn't keep around extra bytes unnecessarily.

There is also `findHostInstancesForRefresh` which should really be
implemented on the `react-refresh` side. Not using an injection but
that's a heavier lift and only affects `__DEV__`.

DiffTrain build for [bea5a2b](bea5a2b)
@gaearon
Copy link
Collaborator

gaearon commented Jul 30, 2024

There is also findHostInstancesForRefresh which should really be implemented on the react-refresh side. Not using an injection but that's a heavier lift and only affects DEV.

I think we actually ended up never using that in any implementations so maybe it can just be removed.

@gaearon
Copy link
Collaborator

gaearon commented Jul 30, 2024

#30538

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