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 enableGetInspectorDataForInstanceInProduction flag #32033

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

javache
Copy link
Member

@javache javache commented Jan 9, 2025

Summary

Callers for this method has been removed in facebook/react-native@65bda54, so these methods no longer need to be conditionally exported and the feature flag can be removed.

How did you test this change?

Flow fabric/native

@react-sizebot
Copy link

react-sizebot commented Jan 9, 2025

Comparing: fd9cfa4...8552973

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.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 513.98 kB 513.98 kB = 91.79 kB 91.79 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 = 547.19 kB 547.19 kB = 97.36 kB 97.36 kB
facebook-www/ReactDOM-prod.classic.js = 595.86 kB 595.86 kB = 104.88 kB 104.88 kB
facebook-www/ReactDOM-prod.modern.js = 586.29 kB 586.29 kB = 103.32 kB 103.32 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
react-native/implementations/ReactNativeRenderer-profiling.fb.js = 413.62 kB 410.24 kB = 71.26 kB 70.62 kB
react-native/implementations/ReactFabric-profiling.fb.js = 408.21 kB 404.84 kB = 70.36 kB 69.70 kB
react-native/implementations/ReactNativeRenderer-prod.fb.js = 388.16 kB 384.78 kB = 67.47 kB 66.79 kB
react-native/implementations/ReactFabric-prod.fb.js = 382.72 kB 379.34 kB = 66.50 kB 65.84 kB

Generated by 🚫 dangerJS against 7fcca4c

Comment on lines +31 to +33
let getInspectorDataForInstance: (
closestInstance: Fiber | null,
) => InspectorData;
Copy link
Contributor

@hoxyq hoxyq Jan 9, 2025

Choose a reason for hiding this comment

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

If its no longer exported from renderer configs, should it be exported from ReactNativeFiberInspector?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's still referenced here from ReactNativeFiberInspector:

@javache javache merged commit 74ea0c7 into facebook:main Jan 9, 2025
186 checks passed
@javache javache deleted the cleanup-getInspectorDataForInstance branch January 9, 2025 15:54
github-actions bot pushed a commit that referenced this pull request Jan 9, 2025
## Summary

Callers for this method has been removed in
facebook/react-native@65bda54,
so these methods no longer need to be conditionally exported and the
feature flag can be removed.

## How did you test this change?

Flow fabric/native

DiffTrain build for [74ea0c7](74ea0c7)
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