MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / callGetDerivedStateFromCatch

Function callGetDerivedStateFromCatch

code/communication/public/app.js:8224–8235  ·  view source on GitHub ↗
(ctor, capturedValues)

Source from the content-addressed store, hash-verified

8222 Object.freeze(fakeInternalInstance);
8223}
8224function callGetDerivedStateFromCatch(ctor, capturedValues) {
8225 var resultState = {};
8226 for (var i = 0; i < capturedValues.length; i++) {
8227 var capturedValue = capturedValues[i];
8228 var error = capturedValue.value;
8229 var partialState = ctor.getDerivedStateFromCatch.call(null, error);
8230 if (partialState !== null && partialState !== undefined) {
8231 _assign(resultState, partialState);
8232 }
8233 }
8234 return resultState;
8235}
8236
8237var ReactFiberClassComponent = function (legacyContext, scheduleWork, computeExpirationForFiber, memoizeProps, memoizeState) {
8238 var cacheContext = legacyContext.cacheContext,

Callers 2

resumeMountClassInstanceFunction · 0.70
updateClassInstanceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected