MCPcopy Create free account
hub / github.com/caseywebdev/react-list / recursivelyFlushAsyncActWork

Function recursivelyFlushAsyncActWork

docs/index.js:1415–1434  ·  view source on GitHub ↗
(returnValue, resolve, reject)

Source from the content-addressed store, hash-verified

1413 actScopeDepth = prevActScopeDepth;
1414 }
1415 function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
1416 var queue = ReactSharedInternals.actQueue;
1417 if (null !== queue)
1418 if (0 !== queue.length)
1419 try {
1420 flushActQueue(queue);
1421 enqueueTask(function () {
1422 return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
1423 });
1424 return;
1425 } catch (error) {
1426 ReactSharedInternals.thrownErrors.push(error);
1427 }
1428 else ReactSharedInternals.actQueue = null;
1429 0 < ReactSharedInternals.thrownErrors.length
1430 ? ((queue = aggregateErrors(ReactSharedInternals.thrownErrors)),
1431 (ReactSharedInternals.thrownErrors.length = 0),
1432 reject(queue))
1433 : resolve(returnValue);
1434 }
1435 function flushActQueue(queue) {
1436 if (!isFlushing) {
1437 isFlushing = !0;

Callers 1

index.jsFile · 0.85

Calls 3

flushActQueueFunction · 0.85
enqueueTaskFunction · 0.85
aggregateErrorsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…