dillon1000/react
Commit
Browse files [Fix] Errors should not "unsuspend" a transition (#22423)
If an error is thrown during a transition where we would have otherwise suspended without showing a fallback (i.e. during a refresh), we should still suspend. The current behavior is that the error will force the fallback to appear, even if it's completely unrelated to the component that errored, which breaks the contract of `startTransition`.
Changed paths3 files
First-parent comparisonpackages/react-reconciler/src/ReactFiberWorkLoop.new.js ModifiedM packages/react-reconciler/src/ReactFiberWorkLoop.old.js ModifiedA packages/react-reconciler/src/__tests__/ReactConcurrentErrorRecovery-test.js AddedPatch
Files changed
Rendering syntax-highlighted changes…