dillon1000/react
Commit
Browse files Retry on error if there's lower priority pending work (#12957)
* Remove enableSuspense flag from PendingPriority module We're going to use this for suspending on error, too. * Retry on error if there's lower priority pending work 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).
Changed paths4 files
First-parent comparisonpackages/react-reconciler/src/ReactFiberPendingPriority.js ModifiedM packages/react-reconciler/src/ReactFiberScheduler.js ModifiedM packages/react-reconciler/src/ReactFiberUnwindWork.js ModifiedM packages/react-reconciler/src/__tests__/ReactIncrementalErrorHandling-test.internal.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…