MCPcopy
hub / github.com/facebook/react / getDebugInfo

Function getDebugInfo

packages/internal-test-utils/debugInfo.js:113–131  ·  view source on GitHub ↗
(config: DebugInfoConfig, obj)

Source from the content-addressed store, hash-verified

111}
112
113export function getDebugInfo(config: DebugInfoConfig, obj) {
114 const debugInfo = obj._debugInfo;
115 if (debugInfo) {
116 const copy = [];
117 for (let i = 0; i < debugInfo.length; i++) {
118 if (
119 debugInfo[i].awaited &&
120 debugInfo[i].awaited.name === 'RSC stream' &&
121 config.ignoreRscStreamInfo
122 ) {
123 // Ignore RSC stream I/O info.
124 } else {
125 copy.push(normalizeDebugInfo(config, debugInfo[i]));
126 }
127 }
128 return copy;
129 }
130 return debugInfo;
131}

Calls 2

normalizeDebugInfoFunction · 0.85
pushMethod · 0.65

Tested by 1

ComponentFunction · 0.68