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

Function callGetDerivedStateFromCatch

code/redux/public/app.js:8440–8451  ·  view source on GitHub ↗
(ctor, capturedValues)

Source from the content-addressed store, hash-verified

8438 Object.freeze(fakeInternalInstance);
8439}
8440function callGetDerivedStateFromCatch(ctor, capturedValues) {
8441 var resultState = {};
8442 for (var i = 0; i < capturedValues.length; i++) {
8443 var capturedValue = capturedValues[i];
8444 var error = capturedValue.value;
8445 var partialState = ctor.getDerivedStateFromCatch.call(null, error);
8446 if (partialState !== null && partialState !== undefined) {
8447 _assign(resultState, partialState);
8448 }
8449 }
8450 return resultState;
8451}
8452
8453var ReactFiberClassComponent = function (legacyContext, scheduleWork, computeExpirationForFiber, memoizeProps, memoizeState) {
8454 var cacheContext = legacyContext.cacheContext,

Callers 2

resumeMountClassInstanceFunction · 0.70
updateClassInstanceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected