dillon1000/react
Commit
Browse files Fire componentDidMount/componentDidUpdate life-cycles
These happen in the commit phase *before* the setState callback. Unfortunately, we've lost the previous state at this point since we've already mutated the instance. This needs to be fixed somehow.
Changed paths3 files
First-parent comparisonsrc/renderers/shared/fiber/ReactFiberCommitWork.js ModifiedM src/renderers/shared/fiber/ReactFiberScheduler.js ModifiedM src/renderers/shared/fiber/__tests__/ReactIncrementalSideEffects-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…