MCPcopy
hub / github.com/microsoft/SandDance / startTransition

Function startTransition

docs/external/js/react-dom.development.js:15657–15673  ·  view source on GitHub ↗
(setPending, config, callback)

Source from the content-addressed store, hash-verified

15655 }
15656
15657 function startTransition(setPending, config, callback) {
15658 var priorityLevel = getCurrentPriorityLevel();
15659 runWithPriority$1(priorityLevel < UserBlockingPriority$1 ? UserBlockingPriority$1 : priorityLevel, function () {
15660 setPending(true);
15661 });
15662 runWithPriority$1(priorityLevel > NormalPriority ? NormalPriority : priorityLevel, function () {
15663 var previousConfig = ReactCurrentBatchConfig$1.suspense;
15664 ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
15665
15666 try {
15667 setPending(false);
15668 callback();
15669 } finally {
15670 ReactCurrentBatchConfig$1.suspense = previousConfig;
15671 }
15672 });
15673 }
15674
15675 function mountTransition(config) {
15676 var _mountState2 = mountState(false),

Callers

nothing calls this directly

Calls 3

getCurrentPriorityLevelFunction · 0.85
runWithPriority$1Function · 0.85
callbackFunction · 0.50

Tested by

no test coverage detected