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

Function unwindInterruptedWork

docs/index.js:13668–13701  ·  view source on GitHub ↗
(current, interruptedWork)

Source from the content-addressed store, hash-verified

13666 }
13667}
13668function unwindInterruptedWork(current, interruptedWork) {
13669 popTreeContext(interruptedWork);
13670 switch (interruptedWork.tag) {
13671 case 3:
13672 popProvider(CacheContext);
13673 popHostContainer();
13674 break;
13675 case 26:
13676 case 27:
13677 case 5:
13678 popHostContext(interruptedWork);
13679 break;
13680 case 4:
13681 popHostContainer();
13682 break;
13683 case 13:
13684 popSuspenseHandler(interruptedWork);
13685 break;
13686 case 19:
13687 pop(suspenseStackCursor);
13688 break;
13689 case 10:
13690 popProvider(interruptedWork.type);
13691 break;
13692 case 22:
13693 case 23:
13694 popSuspenseHandler(interruptedWork);
13695 popHiddenContext();
13696 null !== current && pop(resumedCache);
13697 break;
13698 case 24:
13699 popProvider(CacheContext);
13700 }
13701}
13702var DefaultAsyncDispatcher = {
13703 getCacheForType: function (resourceType) {
13704 var cache = readContext(CacheContext),

Callers 3

resetWorkInProgressStackFunction · 0.85
replayBeginWorkFunction · 0.85

Calls 7

popTreeContextFunction · 0.85
popProviderFunction · 0.85
popHostContainerFunction · 0.85
popHostContextFunction · 0.85
popSuspenseHandlerFunction · 0.85
popFunction · 0.85
popHiddenContextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…