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

Remove RefreshRuntime.findAffectedHostInstances #30538

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Jul 30, 2024

I originally added this with a plan to visualize which nodes got updated after a Fast Refresh. I didn't end up implementing that part, and to my knowledge, no actively used integration actually does that or use this method.

We should be able to delete this without a problem.

Copy link

vercel bot commented Jul 30, 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 30, 2024 9:02pm

@react-sizebot
Copy link

react-sizebot commented Jul 30, 2024

Comparing: edfaa99...99118ff

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 +0.11% 1.82 kB 1.82 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 500.39 kB 500.39 kB = 89.78 kB 89.78 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB +0.11% 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 507.52 kB 507.52 kB = 90.95 kB 90.95 kB
facebook-www/ReactDOM-prod.classic.js = 595.41 kB 595.41 kB = 105.58 kB 105.58 kB
facebook-www/ReactDOM-prod.modern.js = 571.71 kB 571.71 kB = 101.78 kB 101.78 kB
facebook-www/ReactFreshRuntime-dev.classic.js = 12.93 kB 12.37 kB = 3.10 kB 2.99 kB
facebook-www/ReactFreshRuntime-dev.modern.js = 12.93 kB 12.37 kB = 3.10 kB 2.99 kB
oss-experimental/react-refresh/cjs/react-refresh-runtime.development.js = 12.91 kB 12.36 kB = 3.09 kB 2.98 kB
oss-stable-rc/react-refresh/cjs/react-refresh-runtime.development.js = 12.91 kB 12.36 kB = 3.09 kB 2.98 kB
oss-stable-semver/react-refresh/cjs/react-refresh-runtime.development.js = 12.91 kB 12.36 kB = 3.09 kB 2.98 kB
oss-stable/react-refresh/cjs/react-refresh-runtime.development.js = 12.91 kB 12.36 kB = 3.09 kB 2.98 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
facebook-www/ReactDOMTesting-dev.classic.js = 1,097.12 kB 1,094.36 kB = 185.49 kB 185.03 kB
facebook-www/ReactDOM-dev.classic.js = 1,080.22 kB 1,077.45 kB = 181.53 kB 181.06 kB
facebook-www/ReactDOMTesting-dev.modern.js = 1,060.31 kB 1,057.54 kB = 179.40 kB 178.93 kB
facebook-www/ReactDOM-dev.modern.js = 1,043.40 kB 1,040.64 kB = 175.52 kB 175.07 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.development.js = 963.49 kB 960.72 kB = 164.09 kB 163.65 kB
oss-experimental/react-dom/cjs/react-dom-profiling.development.js = 962.99 kB 960.23 kB = 163.09 kB 162.65 kB
oss-stable/react-dom/cjs/react-dom-profiling.development.js = 949.22 kB 946.46 kB = 161.09 kB 160.65 kB
oss-stable-rc/react-dom/cjs/react-dom-profiling.development.js = 949.12 kB 946.35 kB = 161.06 kB 160.63 kB
oss-stable-semver/react-dom/cjs/react-dom-profiling.development.js = 949.12 kB 946.35 kB = 161.06 kB 160.63 kB
oss-experimental/react-dom/cjs/react-dom-client.development.js = 946.55 kB 943.78 kB = 160.27 kB 159.83 kB
oss-stable/react-dom/cjs/react-dom-client.development.js = 932.78 kB 930.02 kB = 158.28 kB 157.84 kB
oss-stable-rc/react-dom/cjs/react-dom-client.development.js = 932.68 kB 929.91 kB = 158.25 kB 157.81 kB
oss-stable-semver/react-dom/cjs/react-dom-client.development.js = 932.68 kB 929.91 kB = 158.25 kB 157.81 kB
facebook-www/ReactReconciler-dev.classic.js = 736.15 kB 733.31 kB = 117.83 kB 117.36 kB
facebook-www/ReactReconciler-dev.modern.js = 711.40 kB 708.55 kB = 113.71 kB 113.23 kB
react-native/implementations/ReactNativeRenderer-dev.fb.js = 651.67 kB 648.93 kB = 107.46 kB 107.03 kB
facebook-www/ReactART-dev.classic.js = 647.30 kB 644.56 kB = 104.21 kB 103.74 kB
react-native/implementations/ReactFabric-dev.fb.js = 645.45 kB 642.71 kB = 106.03 kB 105.61 kB
react-native/implementations/ReactNativeRenderer-dev.js = 639.47 kB 636.73 kB = 105.27 kB 104.83 kB
react-native/implementations/ReactFabric-dev.js = 628.70 kB 625.96 kB = 103.17 kB 102.72 kB
facebook-www/ReactART-dev.modern.js = 623.97 kB 621.22 kB = 100.46 kB 100.00 kB
oss-experimental/react-reconciler/cjs/react-reconciler.development.js = 644.67 kB 641.83 kB = 103.70 kB 103.23 kB
oss-stable/react-reconciler/cjs/react-reconciler.development.js = 631.37 kB 628.52 kB = 101.91 kB 101.43 kB
oss-stable-rc/react-reconciler/cjs/react-reconciler.development.js = 631.35 kB 628.50 kB = 101.89 kB 101.41 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.development.js = 631.35 kB 628.50 kB = 101.89 kB 101.41 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-dev.js = 576.57 kB 573.83 kB = 94.21 kB 93.77 kB
facebook-www/ReactTestRenderer-dev.classic.js = 569.48 kB 566.74 kB = 93.52 kB 93.05 kB
facebook-www/ReactTestRenderer-dev.modern.js = 569.48 kB 566.73 kB = 93.52 kB 93.05 kB
oss-experimental/react-art/cjs/react-art.development.js = 560.61 kB 557.87 kB = 90.83 kB 90.30 kB
oss-stable/react-art/cjs/react-art.development.js = 546.48 kB 543.74 kB = 88.99 kB 88.46 kB
oss-stable-rc/react-art/cjs/react-art.development.js = 546.42 kB 543.67 kB = 88.97 kB 88.44 kB
oss-stable-semver/react-art/cjs/react-art.development.js = 546.42 kB 543.67 kB = 88.97 kB 88.44 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.development.js = 545.91 kB 543.17 kB = 89.43 kB 89.00 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.development.js = 542.40 kB 539.66 kB = 88.91 kB 88.47 kB
oss-stable-rc/react-test-renderer/cjs/react-test-renderer.development.js = 542.34 kB 539.59 kB = 88.89 kB 88.45 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.development.js = 542.34 kB 539.59 kB = 88.89 kB 88.45 kB
facebook-www/ReactFreshRuntime-dev.classic.js = 12.93 kB 12.37 kB = 3.10 kB 2.99 kB
facebook-www/ReactFreshRuntime-dev.modern.js = 12.93 kB 12.37 kB = 3.10 kB 2.99 kB
oss-experimental/react-refresh/cjs/react-refresh-runtime.development.js = 12.91 kB 12.36 kB = 3.09 kB 2.98 kB
oss-stable-rc/react-refresh/cjs/react-refresh-runtime.development.js = 12.91 kB 12.36 kB = 3.09 kB 2.98 kB
oss-stable-semver/react-refresh/cjs/react-refresh-runtime.development.js = 12.91 kB 12.36 kB = 3.09 kB 2.98 kB
oss-stable/react-refresh/cjs/react-refresh-runtime.development.js = 12.91 kB 12.36 kB = 3.09 kB 2.98 kB

Generated by 🚫 dangerJS against 61af6e0

@kassens
Copy link
Member

kassens commented Jul 30, 2024

Confirmed also no Meta-internal references.

@gaearon gaearon merged commit 96f3093 into main Jul 30, 2024
185 checks passed
@gaearon gaearon deleted the rm-refresh-findhost branch July 30, 2024 21:06
github-actions bot pushed a commit that referenced this pull request Jul 30, 2024
I originally added this with a plan to visualize which nodes got updated
after a Fast Refresh. I didn't end up implementing that part, and to my
knowledge, no actively used integration actually does that or use this
method.

- [Webpack plugin doesn't use
it](https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/f1c8b9a44198449093ca95f85af5df97925e1cfc/lib/runtime/RefreshUtils.js)
- [RN doesn't use
it](https://github.com/facebook/react-native/blob/23c5c42de01953ed7b8e8938c2d3a8fac82250a0/packages/react-native/Libraries/Core/setUpReactRefresh.js)
- [Global GitHub code
search](https://github.com/search?q=findAffectedHostInstances&type=code&p=1)
only shows copies of this code and the type definition based on it, but
not actual calls to it

We should be able to delete this without a problem.

DiffTrain build for commit 96f3093.
github-actions bot pushed a commit that referenced this pull request Jul 30, 2024
I originally added this with a plan to visualize which nodes got updated
after a Fast Refresh. I didn't end up implementing that part, and to my
knowledge, no actively used integration actually does that or use this
method.

- [Webpack plugin doesn't use
it](https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/f1c8b9a44198449093ca95f85af5df97925e1cfc/lib/runtime/RefreshUtils.js)
- [RN doesn't use
it](https://github.com/facebook/react-native/blob/23c5c42de01953ed7b8e8938c2d3a8fac82250a0/packages/react-native/Libraries/Core/setUpReactRefresh.js)
- [Global GitHub code
search](https://github.com/search?q=findAffectedHostInstances&type=code&p=1)
only shows copies of this code and the type definition based on it, but
not actual calls to it

We should be able to delete this without a problem.

DiffTrain build for [96f3093](96f3093)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants