dillon1000/react

Commit

[Fiber] Make requestIdleCallback() and requestAnimationFrame() shims async (#8591)

* Add a failing test for recursion check

* Make requestIdleCallback() and requestAnimationFrame() shims async

They no longer need to be sync in tests because we already made DOM renderer sync by default.
This fixes a crash when testing incrementalness in DOM renderer itself.

* Style fix

* Fix lint
Browse files
Changed paths3 files
First-parent comparison
M scripts/fiber/tests-passing.txt ModifiedM scripts/jest/environment.js ModifiedM src/renderers/dom/fiber/__tests__/ReactDOMFiber-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…