dillon1000/react
Commit
Browse files Track nested updates per root (#10574)
We track nested updates to simulate a stack overflow error and prevent infinite loops. Every time we commit a tree, we increment a counter. This works if you only have one tree, but if you update many separate trees, it creates a false negative. The fix is to reset the counter whenever we switch trees.
Changed paths2 files
First-parent comparisonsrc/renderers/__tests__/ReactUpdates-test.js ModifiedM src/renderers/shared/fiber/ReactFiberScheduler.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…