MCPcopy
hub / github.com/react/create-react-app / asap

Function asap

packages/react-error-overlay/fixtures/bundle_u.mjs:2298–2302  ·  view source on GitHub ↗

* Enqueue a callback to be run at the end of the current batching cycle. Throws * if no updates are currently being performed.

(callback, context)

Source from the content-addressed store, hash-verified

2296 * if no updates are currently being performed.
2297 */
2298function asap(callback, context) {
2299 !batchingStrategy.isBatchingUpdates ? true ? invariant(false, 'ReactUpdates.asap: Can\'t enqueue an asap callback in a context whereupdates are not being batched.') : _prodInvariant('125') : void 0;
2300 asapCallbackQueue.enqueue(callback, context);
2301 asapEnqueued = true;
2302}
2303
2304var ReactUpdatesInjection = {
2305 injectReconcileTransaction: function (ReconcileTransaction) {

Callers 1

handleResolvedFunction · 0.70

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected