dillon1000/react
Commit
Browse files Don't swap the trees until after the first pass of the commit phase, where componentWillUnmount is called, but before the second pass, where componentDidMount/Update is called.
Changed paths2 files
First-parent comparisonsrc/renderers/shared/fiber/ReactFiberScheduler.js ModifiedM src/renderers/shared/fiber/__tests__/ReactIncrementalReflection-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…