dillon1000/react

Commit

Fixes bug when initial mount of a host component is `hidden` (#12294)

`oldProps` was null. This went uncaught by the unit tests because
ReactNoop did not use `oldProps` in either `prepareUpdate` or
`completeUpdate`. I added some invariants so we don't regress in
the future.
Browse files
Changed paths3 files
First-parent comparison
M packages/react-noop-renderer/src/ReactNoop.js ModifiedM packages/react-reconciler/src/ReactFiberBeginWork.js ModifiedM packages/react-reconciler/src/__tests__/ReactIncrementalSideEffects-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…