Files
react/scripts
Andrew Clark 822386f252 Fix: Detect infinite update loops caused by render phase updates (#26625)
This PR contains a regression test and two separate fixes: a targeted
fix, and a more general one that's designed as a last-resort guard
against these types of bugs (both bugs in app code and bugs in React).

I confirmed that each of these fixes separately are sufficient to fix
the regression test I added.

We can't realistically detect all infinite update loop scenarios because
they could be async; even a single microtask can foil our attempts to
detect a cycle. But this improves our strategy for detecting the most
common kind.

See commit messages for more details.
2023-06-27 13:26:35 -04:00
..
2023-01-31 08:25:05 -05:00
2023-01-31 08:25:05 -05:00
2023-06-16 09:57:03 -04:00
2023-01-31 08:25:05 -05:00
2023-01-31 08:25:05 -05:00
2013-09-09 23:42:54 -07:00