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

Enable suspenseCallback on React Native #29210

Merged
merged 3 commits into from
Aug 27, 2024

Conversation

bgirard
Copy link
Contributor

@bgirard bgirard commented May 22, 2024

Summary

suspenseCallback feature has proved to be useful for FB Web. Let's look at enabling the feature for the React Native build.

How did you test this change?

Will sync the react changes with a React Native build and will verify that performance logging is correctly notified of suspense promises during the suspense callback.

Copy link

vercel bot commented May 22, 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 Aug 26, 2024 11:24pm

@react-sizebot
Copy link

react-sizebot commented May 22, 2024

Comparing: dcae56f...c6df5b7

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.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 501.40 kB 501.40 kB = 89.99 kB 89.99 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB +0.16% 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 508.52 kB 508.52 kB = 91.16 kB 91.16 kB
facebook-www/ReactDOM-prod.classic.js = 596.16 kB 596.16 kB = 105.69 kB 105.70 kB
facebook-www/ReactDOM-prod.modern.js = 572.44 kB 572.44 kB = 101.88 kB 101.88 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/ReactFabric-prod.fb.js +0.22% 372.67 kB 373.48 kB +0.20% 65.19 kB 65.32 kB
react-native/implementations/ReactNativeRenderer-prod.fb.js +0.21% 377.88 kB 378.69 kB +0.24% 66.30 kB 66.46 kB
react-native/implementations/ReactFabric-profiling.fb.js +0.20% 400.22 kB 401.03 kB +0.22% 69.49 kB 69.64 kB

Generated by 🚫 dangerJS against 130ae88

Copy link
Member

@rickhanlonii rickhanlonii left a comment

Choose a reason for hiding this comment

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

Let's discuss more, I'm not sure if we want to expand usage of this feature until we know for sure it makes sense and has a path to making it to open source.

Copy link

This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.

@github-actions github-actions bot added the Resolution: Stale Automatically closed due to inactivity label Aug 20, 2024
patch Outdated Show resolved Hide resolved
@rickhanlonii rickhanlonii merged commit 246d7bf into facebook:main Aug 27, 2024
184 checks passed
github-actions bot pushed a commit that referenced this pull request Aug 27, 2024
## Summary

suspenseCallback feature has proved to be useful for FB Web. Let's look
at enabling the feature for the React Native build.

## How did you test this change?

Will sync the react changes with a React Native build and will verify
that performance logging is correctly notified of suspense promises
during the suspense callback.

DiffTrain build for commit 246d7bf.
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.

5 participants