Files
react/compiled
acdlite 0fa8f92b99 Fix: Infinite act loop caused by wrong shouldYield (#26317)
Based on a bug report from @bvaughn.

`act` should not consult `shouldYield` when it's performing work,
because in a unit testing environment, I/O (such as `setTimeout`) is
likely mocked. So the result of `shouldYield` can't be trusted.

In the regression test, I simulate the bug by mocking `shouldYield` to
always return `true`. This causes an infinite loop in `act`, because it
will keep trying to render and React will keep yielding.

DiffTrain build for [49f7410467](https://github.com/facebook/react/commit/49f7410467950de57bd1d9509e67de91185f7bad)
2023-03-06 01:31:20 +00:00
..