dillon1000/react

Commit

getDerivedStateFrom{Props,Catch} should update updateQueue.baseState (#12528)

Based on a bug found in UFI2.

There have been several bugs related to the update queue (and
specifically baseState) recently, so I'm going to follow-up with some
refactoring to clean it up. This is a quick fix so we can ship a
patch release.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-reconciler/src/ReactFiberClassComponent.js ModifiedM packages/react-reconciler/src/__tests__/ReactIncrementalUpdates-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…