dillon1000/react
Commit
Browse files Update debugRenderPhaseSideEffects behavior (#12057)
Update debugRenderPhaseSideEffects behavior This feature flag no longer double-invokes componentWillMount, componentWillReceiveProps, componentWillUpdate, or shouldComponentUpdate. It continues to double-invoke the constructor, render, and setState updater functions as well as the recently added, static getDerivedStateFromProps method Tests have been updated.
Changed paths3 files
First-parent comparisonpackages/react-reconciler/src/ReactFiberBeginWork.js ModifiedM packages/react-reconciler/src/ReactFiberClassComponent.js ModifiedM packages/react/src/__tests__/ReactAsyncClassComponent-test.internal.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…