MCPcopy Create free account
hub / github.com/reactjs/react-rails / unwindInterruptedWork

Function unwindInterruptedWork

lib/assets/react-source/development/react.js:23120–23162  ·  view source on GitHub ↗
(interruptedWork)

Source from the content-addressed store, hash-verified

23118 }
23119
23120 function unwindInterruptedWork(interruptedWork) {
23121 switch (interruptedWork.tag) {
23122 case ClassComponent:
23123 {
23124 var childContextTypes = interruptedWork.type.childContextTypes;
23125
23126 if (childContextTypes !== null && childContextTypes !== undefined) {
23127 popContext(interruptedWork);
23128 }
23129
23130 break;
23131 }
23132
23133 case HostRoot:
23134 {
23135 popHostContainer(interruptedWork);
23136 popTopLevelContextObject(interruptedWork);
23137 break;
23138 }
23139
23140 case HostComponent:
23141 {
23142 popHostContext(interruptedWork);
23143 break;
23144 }
23145
23146 case HostPortal:
23147 popHostContainer(interruptedWork);
23148 break;
23149
23150 case SuspenseComponent:
23151 popSuspenseContext(interruptedWork);
23152 break;
23153
23154 case SuspenseListComponent:
23155 popSuspenseContext(interruptedWork);
23156 break;
23157
23158 case ContextProvider:
23159 popProvider(interruptedWork);
23160 break;
23161 }
23162 }
23163
23164 function createCapturedValue(value, source) {
23165 // If the value is an error, call this function immediately after it is thrown

Callers 2

prepareFreshStackFunction · 0.85
react.jsFile · 0.85

Calls 6

popContextFunction · 0.85
popHostContainerFunction · 0.85
popTopLevelContextObjectFunction · 0.85
popHostContextFunction · 0.85
popSuspenseContextFunction · 0.85
popProviderFunction · 0.85

Tested by

no test coverage detected