dillon1000/react
Commit
Browse files 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.
Changed paths3 files
First-parent comparisonpackages/react-noop-renderer/src/ReactNoop.js ModifiedM packages/react-reconciler/src/ReactFiberBeginWork.js ModifiedM packages/react-reconciler/src/__tests__/ReactIncrementalSideEffects-test.internal.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…