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

Function createCapturedValue

code/new-context-api/public/app.js:10344–10352  ·  view source on GitHub ↗
(value, source)

Source from the content-addressed store, hash-verified

10342};
10343
10344function createCapturedValue(value, source) {
10345 // If the value is an error, call this function immediately after it is thrown
10346 // so the stack is accurate.
10347 return {
10348 value: value,
10349 source: source,
10350 stack: getStackAddendumByWorkInProgressFiber(source)
10351 };
10352}
10353
10354var ReactFiberUnwindWork = function (hostContext, legacyContext, newContext, scheduleWork, isAlreadyFailedLegacyErrorBoundary) {
10355 var popHostContainer = hostContext.popHostContainer,

Callers 2

throwExceptionFunction · 0.70
scheduleCaptureFunction · 0.70

Tested by

no test coverage detected