dillon1000/react

Commit

Remove currentlyUnmountingComponent

This was used for any invariant that was subsequently removed. It turns
out that this is completely unnecessary now. Any setState calls will
enqueue and update and the component added to the update queue. However,
since the pending fields are reset after componentWillUnmount, any update
will still be ignored.
Browse files
Changed paths4 files
First-parent comparison
M src/renderers/shared/reconciler/ReactCompositeComponent.js ModifiedM src/renderers/shared/reconciler/ReactLifeCycle.js ModifiedM src/renderers/shared/reconciler/ReactUpdateQueue.js ModifiedM src/renderers/shared/reconciler/__tests__/ReactComponentLifeCycle-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…