MCPcopy Create free account
hub / github.com/caseywebdev/react-list / createCapturedValueAtFiber

Function createCapturedValueAtFiber

docs/index.js:5936–5953  ·  view source on GitHub ↗
(value, source)

Source from the content-addressed store, hash-verified

5934var emptyContextObject = {},
5935 CapturedStacks = new WeakMap();
5936function createCapturedValueAtFiber(value, source) {
5937 if ("object" === typeof value && null !== value) {
5938 var existing = CapturedStacks.get(value);
5939 if (void 0 !== existing) return existing;
5940 source = {
5941 value: value,
5942 source: source,
5943 stack: getStackByFiberInDevAndProd(source)
5944 };
5945 CapturedStacks.set(value, source);
5946 return source;
5947 }
5948 return {
5949 value: value,
5950 source: source,
5951 stack: getStackByFiberInDevAndProd(source)
5952 };
5953}
5954var forkStack = [],
5955 forkStackIndex = 0,
5956 treeForkProvider = null,

Callers 8

throwOnHydrationMismatchFunction · 0.85
throwExceptionFunction · 0.85
beginWorkFunction · 0.85
handleThrowFunction · 0.85
throwAndUnwindWorkLoopFunction · 0.85
captureCommitPhaseErrorFunction · 0.85
updateClassComponentFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…