MCPcopy Create free account
hub / github.com/danielstocks/react-sortable / batchedUpdates

Function batchedUpdates

bundle.js:5864–5866  ·  view source on GitHub ↗
(fn,bookkeeping)

Source from the content-addressed store, hash-verified

5862var stackBatchedUpdates=function stackBatchedUpdates(fn,a,b,c,d,e){return fn(a,b,c,d,e);};var fiberBatchedUpdates=function fiberBatchedUpdates(fn,bookkeeping){return fn(bookkeeping);};function performFiberBatchedUpdates(fn,bookkeeping){// If we have Fiber loaded, we need to wrap this in a batching call so that
5863// Fiber can apply its default priority for this call.
5864return fiberBatchedUpdates(fn,bookkeeping);}function batchedUpdates(fn,bookkeeping){// We first perform work with the stack batching strategy, by passing our
5865// indirection to it.
5866return stackBatchedUpdates(performFiberBatchedUpdates,fn,bookkeeping);}var isNestingBatched=false;function batchedUpdatesWithControlledComponents(fn,bookkeeping){if(isNestingBatched){// If we are currently inside another batch, we need to wait until it
5867// fully completes before restoring state. Therefore, we add the target to
5868// a queue of work.
5869return batchedUpdates(fn,bookkeeping);}isNestingBatched=true;try{return batchedUpdates(fn,bookkeeping);}finally{// Here we wait until all updates have propagated, which is important

Calls 2

stackBatchedUpdatesFunction · 0.85
performWorkFunction · 0.85

Tested by

no test coverage detected