react/scripts/rollup/validate
Andrew Clark e7b255341b
Internal act: Flush timers at end of scope (#19788)
If there are any suspended fallbacks at the end of the `act` scope,
force them to display by running the pending timers (i.e. `setTimeout`).

The public implementation of `act` achieves the same behavior with an
extra check in the work loop (`shouldForceFlushFallbacks`). Since our
internal `act` needs to work in both development and production, without
additional runtime checks, we instead rely on Jest's mock timers.

This doesn't not affect refresh transitions, which are meant to delay
indefinitely, because in that case we exit the work loop without
posting a timer.
2020-09-08 21:55:23 -07:00
..
eslintrc.cjs.js Internal act: Flush timers at end of scope (#19788) 2020-09-08 21:55:23 -07:00
eslintrc.cjs2015.js Internal act: Flush timers at end of scope (#19788) 2020-09-08 21:55:23 -07:00
eslintrc.fb.js Internal act: Flush timers at end of scope (#19788) 2020-09-08 21:55:23 -07:00
eslintrc.rn.js Internal act: Flush timers at end of scope (#19788) 2020-09-08 21:55:23 -07:00
eslintrc.umd.js Internal act: Flush timers at end of scope (#19788) 2020-09-08 21:55:23 -07:00
index.js Add simple Node build (#19022) 2020-05-28 15:56:34 -07:00