dillon1000/react

Commit

Enqueue update and callback simultaneously

Without this fix, in non-batched mode, the update is scheduled first and
synchronously flushed before the callback is added to the queue. The
callback isn't called until the next flush.
Browse files
Changed paths4 files
First-parent comparison
M src/isomorphic/classic/class/ReactClass.js ModifiedM src/isomorphic/modern/class/ReactComponent.js ModifiedM src/renderers/shared/fiber/ReactFiberClassComponent.js ModifiedM src/renderers/shared/stack/reconciler/__tests__/ReactCompositeComponentState-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…