MCPcopy
hub / github.com/facebook/react / setCurrentUpdatePriority

Function setCurrentUpdatePriority

packages/react-art/src/ReactFiberConfigART.js:383–385  ·  view source on GitHub ↗
(newPriority: EventPriority)

Source from the content-addressed store, hash-verified

381let currentUpdatePriority: EventPriority = NoEventPriority;
382
383export function setCurrentUpdatePriority(newPriority: EventPriority): void {
384 currentUpdatePriority = newPriority;
385}
386
387export function getCurrentUpdatePriority(): EventPriority {
388 return currentUpdatePriority;

Callers 12

ReactFiberHooks.jsFile · 0.90
deferredUpdatesFunction · 0.90
discreteUpdatesFunction · 0.90
flushSyncFromReconcilerFunction · 0.90
commitRootFunction · 0.90
flushMutationEffectsFunction · 0.90
flushLayoutEffectsFunction · 0.90
flushSpawnedWorkFunction · 0.90
commitGestureOnRootFunction · 0.90
flushGestureMutationsFunction · 0.90
flushGestureAnimationsFunction · 0.90
flushPassiveEffectsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected