dillon1000/react

Commit

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.
Browse files
Changed paths2 files
First-parent comparison
M src/renderers/__tests__/ReactUpdates-test.js ModifiedM src/renderers/shared/fiber/ReactFiberScheduler.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…