dillon1000/react
Commit
Browse files Use global state for `hasForceUpdate` instead of persisting to queue (#12808)
* Use global state for `hasForceUpdate` instead of persisting to queue Fixes a bug where `hasForceUpdate` was not reset on commit. Ideally we'd use a tuple and return `hasForceUpdate` from `processUpdateQueue`. * Remove underscore and add comment * Remove temporary variables
Changed paths3 files
First-parent comparisonpackages/react-reconciler/src/ReactFiberClassComponent.js ModifiedM packages/react-reconciler/src/ReactUpdateQueue.js ModifiedM packages/react-reconciler/src/__tests__/ReactIncremental-test.internal.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…