dillon1000/react
Commit
Browse files Ignore DOM writes outside the batch in ReactPerf
ReactDOMInput and a few other classes handle change event by scheduling updateWrapper() in an asap(). It gets executed after the batch, which confuses ReactPerf that expects all DOM writes to happen during a batch. Since this implementation of ReactPerf relying on the stack is going away, let's plug the hole temporarily by ignoring DOM writes that occur during postponed updateWrapper(). In any case, they have no relation to actual calculations of wasted renders, as they don't occur due to updateComponent(), but rather due to onChange() special DOM behavior. This fixes #5548
Changed paths2 files
First-parent comparisonsrc/test/ReactDefaultPerfAnalysis.js ModifiedM src/test/__tests__/ReactDefaultPerf-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…