dillon1000/react

Commit

Strengthen nested update counter test coverage (#15166)

* Isolate ReactUpdates-test cases

This ensures their behavior is consistent when run in isolation, and that they actually test the cases they're describing.

* Add coverage for cases where we reset nestedUpdateCounter

These cases explicitly verify that we reset the counter in right places.

* Add a mutually recursive test case

* Add test coverage for useLayoutEffect loop
Browse files
Changed paths1 file
First-parent comparison
M packages/react-dom/src/__tests__/ReactUpdates-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…