react/scripts/rollup/validate
Andrew Clark 93c10dfa6b
flushSync: Exhaust queue even if something throws (#26366)
If something throws as a result of `flushSync`, and there's remaining
work left in the queue, React should keep working until all the work is
complete.

If multiple errors are thrown, React will combine them into an
AggregateError object and throw that. In environments where
AggregateError is not available, React will rethrow in an async task.
(All the evergreen runtimes support AggregateError.)

The scenario where this happens is relatively rare, because `flushSync`
will only throw if there's no error boundary to capture the error.
2023-03-10 17:21:34 -05:00
..
eslintrc.cjs.js flushSync: Exhaust queue even if something throws (#26366) 2023-03-10 17:21:34 -05:00
eslintrc.cjs2015.js flushSync: Exhaust queue even if something throws (#26366) 2023-03-10 17:21:34 -05:00
eslintrc.esm.js flushSync: Exhaust queue even if something throws (#26366) 2023-03-10 17:21:34 -05:00
eslintrc.fb.js flushSync: Exhaust queue even if something throws (#26366) 2023-03-10 17:21:34 -05:00
eslintrc.rn.js flushSync: Exhaust queue even if something throws (#26366) 2023-03-10 17:21:34 -05:00
eslintrc.umd.js flushSync: Exhaust queue even if something throws (#26366) 2023-03-10 17:21:34 -05:00
index.js Refactor: more word doubles removed (#25352) 2022-09-29 09:57:49 -04:00