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

Function callGetDerivedStateFromCatch

code/third-party/public/app.js:7422–7433  ·  view source on GitHub ↗
(ctor, capturedValues)

Source from the content-addressed store, hash-verified

7420 Object.freeze(fakeInternalInstance);
7421}
7422function callGetDerivedStateFromCatch(ctor, capturedValues) {
7423 var resultState = {};
7424 for (var i = 0; i < capturedValues.length; i++) {
7425 var capturedValue = capturedValues[i];
7426 var error = capturedValue.value;
7427 var partialState = ctor.getDerivedStateFromCatch.call(null, error);
7428 if (partialState !== null && partialState !== undefined) {
7429 _assign(resultState, partialState);
7430 }
7431 }
7432 return resultState;
7433}
7434
7435var ReactFiberClassComponent = function (legacyContext, scheduleWork, computeExpirationForFiber, memoizeProps, memoizeState) {
7436 var cacheContext = legacyContext.cacheContext,

Callers 2

resumeMountClassInstanceFunction · 0.70
updateClassInstanceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected