Skip to content

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.

@vercel
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: dcae56f8b72f625d8affe5729ca9991b31a492ac...c6df5b778fd308f7eb790d17d8e55cce22d62d59

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.

@github-actions
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
@github-actions github-actions bot removed the Resolution: Stale Automatically closed due to inactivity label Aug 22, 2024
@bgirard bgirard force-pushed the SuspenseCallbackRN branch 3 times, most recently from d341cc7 to 912997e Compare August 22, 2024 18:42
@poteto poteto force-pushed the SuspenseCallbackRN branch from 912997e to d49c9e6 Compare August 22, 2024 20:14
@bgirard bgirard force-pushed the SuspenseCallbackRN branch from d49c9e6 to 7c3f7f2 Compare August 22, 2024 20:41
@rickhanlonii rickhanlonii merged commit 246d7bf into facebook:main Aug 27, 2024
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