dillon1000/react
Commit
Browse files 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.
Changed paths4 files
First-parent comparisonsrc/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…