MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / callGetDerivedStateFromCatch

Function callGetDerivedStateFromCatch

code/composition/public/app.js:8327–8338  ·  view source on GitHub ↗
(ctor, capturedValues)

Source from the content-addressed store, hash-verified

8325 Object.freeze(fakeInternalInstance);
8326}
8327function callGetDerivedStateFromCatch(ctor, capturedValues) {
8328 var resultState = {};
8329 for (var i = 0; i < capturedValues.length; i++) {
8330 var capturedValue = capturedValues[i];
8331 var error = capturedValue.value;
8332 var partialState = ctor.getDerivedStateFromCatch.call(null, error);
8333 if (partialState !== null && partialState !== undefined) {
8334 _assign(resultState, partialState);
8335 }
8336 }
8337 return resultState;
8338}
8339
8340var ReactFiberClassComponent = function (legacyContext, scheduleWork, computeExpirationForFiber, memoizeProps, memoizeState) {
8341 var cacheContext = legacyContext.cacheContext,

Callers 2

resumeMountClassInstanceFunction · 0.70
updateClassInstanceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected