dillon1000/react

Commit

Fix synchronous thenable rejection (#14633)

* Fix handling of sync rejection

Reverts #14632 and adds a regression test.

* Handle rejection synchronously too

Fewer footguns and seems like nicer behavior anyway.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-reconciler/src/ReactFiberLazyComponent.js ModifiedM packages/react-reconciler/src/__tests__/ReactLazy-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…