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

Retry on error if there's lower priority pending work #12957

Merged
merged 2 commits into from Jun 13, 2018

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented May 31, 2018

If an error is thrown, and there's lower priority work, it's possible the lower priority work will fix the error. Retry at the lower priority.

If an error is thrown and there's no more work to try, handle the error like we normally do (trigger the nearest error boundary).

This does not handle expiration correctly. If a priority level is suspended due to an error, the lower priority work should expire at the time of the suspended work. I'll work on this in a subsequent PR.

We're going to use this for suspending on error, too.
If an error is thrown, and there's lower priority work, it's possible
the lower priority work will fix the error. Retry at the lower priority.

If an error is thrown and there's no more work to try, handle the error
like we normally do (trigger the nearest error boundary).
@pull-bot
Copy link

ReactDOM: size: 🔺+1.2%, gzip: 🔺+0.9%

Details of bundled changes.

Comparing: 36546b5...2755834

react-dom

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-dom.development.js +0.1% +0.1% 626.32 KB 626.75 KB 145.82 KB 146.01 KB UMD_DEV
react-dom.production.min.js 🔺+1.2% 🔺+0.9% 94.16 KB 95.28 KB 30.5 KB 30.79 KB UMD_PROD
react-dom.development.js +0.1% +0.1% 610.68 KB 611.11 KB 141.81 KB 142 KB NODE_DEV
react-dom.production.min.js 🔺+1.2% 🔺+1.0% 92.66 KB 93.78 KB 29.48 KB 29.77 KB NODE_PROD
ReactDOM-dev.js +0.1% +0.1% 620.2 KB 620.63 KB 141.21 KB 141.42 KB FB_WWW_DEV
ReactDOM-prod.js 0.0% -0.0% 269.19 KB 269.21 KB 50.57 KB 50.55 KB FB_WWW_PROD

react-art

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-art.development.js +0.1% +0.2% 407.9 KB 408.33 KB 91.04 KB 91.23 KB UMD_DEV
react-art.production.min.js 🔺+1.4% 🔺+1.1% 81.05 KB 82.17 KB 25 KB 25.27 KB UMD_PROD
react-art.development.js +0.1% +0.3% 333.75 KB 334.18 KB 72.13 KB 72.31 KB NODE_DEV
react-art.production.min.js 🔺+2.5% 🔺+1.9% 45.41 KB 46.53 KB 14.14 KB 14.4 KB NODE_PROD
ReactART-dev.js +0.1% +0.3% 326.38 KB 326.81 KB 68.06 KB 68.27 KB FB_WWW_DEV
ReactART-prod.js -0.1% -0.1% 141.93 KB 141.75 KB 24.25 KB 24.23 KB FB_WWW_PROD

react-test-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-test-renderer.development.js +0.1% +0.2% 340.4 KB 340.82 KB 73.61 KB 73.79 KB UMD_DEV
react-test-renderer.production.min.js 🔺+2.4% 🔺+1.8% 45.81 KB 46.93 KB 14.19 KB 14.44 KB UMD_PROD
react-test-renderer.development.js +0.1% +0.3% 331.23 KB 331.65 KB 70.87 KB 71.06 KB NODE_DEV
react-test-renderer.production.min.js 🔺+2.5% 🔺+1.9% 44.91 KB 46.04 KB 13.74 KB 13.99 KB NODE_PROD
ReactTestRenderer-dev.js +0.1% +0.3% 337.13 KB 337.56 KB 70.46 KB 70.7 KB FB_WWW_DEV

react-reconciler

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-reconciler.development.js +0.1% +0.3% 324.29 KB 324.72 KB 68.68 KB 68.86 KB NODE_DEV
react-reconciler.production.min.js 🔺+2.5% 🔺+1.9% 45.18 KB 46.3 KB 13.5 KB 13.75 KB NODE_PROD
react-reconciler-persistent.development.js +0.1% +0.3% 322.84 KB 323.27 KB 68.07 KB 68.25 KB NODE_DEV
react-reconciler-persistent.production.min.js 🔺+2.5% 🔺+1.9% 45.19 KB 46.31 KB 13.5 KB 13.76 KB NODE_PROD

react-native-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactNativeRenderer-dev.js +0.1% +0.2% 457.79 KB 458.22 KB 100.06 KB 100.28 KB RN_FB_DEV
ReactNativeRenderer-prod.js -0.1% -0.1% 205.68 KB 205.38 KB 35.94 KB 35.9 KB RN_FB_PROD
ReactNativeRenderer-dev.js +0.1% +0.2% 457.45 KB 457.88 KB 99.99 KB 100.22 KB RN_OSS_DEV
ReactNativeRenderer-prod.js 🔺+1.7% 🔺+1.4% 193.67 KB 196.92 KB 33.9 KB 34.39 KB RN_OSS_PROD
ReactFabric-dev.js +0.1% +0.2% 448.7 KB 449.14 KB 97.82 KB 98.05 KB RN_FB_DEV
ReactFabric-prod.js 🔺+1.9% 🔺+1.6% 185.92 KB 189.54 KB 32.54 KB 33.07 KB RN_FB_PROD
ReactFabric-dev.js +0.1% +0.2% 448.74 KB 449.17 KB 97.84 KB 98.07 KB RN_OSS_DEV
ReactFabric-prod.js 🔺+1.9% 🔺+1.6% 185.95 KB 189.57 KB 32.56 KB 33.08 KB RN_OSS_PROD

Generated by 🚫 dangerJS

@acdlite
Copy link
Collaborator Author

acdlite commented May 31, 2018

Size change is because I had to move some stuff outside of the enableSuspense feature flag.

@acdlite acdlite merged commit e0c7834 into facebook:master Jun 13, 2018
@flarnie
Copy link
Contributor

flarnie commented Jun 14, 2018

@acdlite fyi - My sync yesterday didn't land, so planning on syncing this to Facebook first thing on Monday.

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.

None yet

5 participants