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

Function callGetDerivedStateFromCatch

code/styling/public/app.js:8189–8200  ·  view source on GitHub ↗
(ctor, capturedValues)

Source from the content-addressed store, hash-verified

8187 Object.freeze(fakeInternalInstance);
8188}
8189function callGetDerivedStateFromCatch(ctor, capturedValues) {
8190 var resultState = {};
8191 for (var i = 0; i < capturedValues.length; i++) {
8192 var capturedValue = capturedValues[i];
8193 var error = capturedValue.value;
8194 var partialState = ctor.getDerivedStateFromCatch.call(null, error);
8195 if (partialState !== null && partialState !== undefined) {
8196 _assign(resultState, partialState);
8197 }
8198 }
8199 return resultState;
8200}
8201
8202var ReactFiberClassComponent = function (legacyContext, scheduleWork, computeExpirationForFiber, memoizeProps, memoizeState) {
8203 var cacheContext = legacyContext.cacheContext,

Callers 2

resumeMountClassInstanceFunction · 0.70
updateClassInstanceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected