MCPcopy
hub / github.com/react/react / getCurrentDebugTask

Function getCurrentDebugTask

packages/react-reconciler/src/ReactChildFiber.js:105–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103}
104
105function getCurrentDebugTask(): null | ConsoleTask {
106 // Get the debug task of the parent Server Component if there is one.
107 if (__DEV__) {
108 const debugInfo = currentDebugInfo;
109 if (debugInfo != null) {
110 for (let i = debugInfo.length - 1; i >= 0; i--) {
111 if (debugInfo[i].name != null) {
112 const componentInfo: ReactComponentInfo = debugInfo[i];
113 const debugTask: ?ConsoleTask = componentInfo.debugTask;
114 if (debugTask != null) {
115 return debugTask;
116 }
117 }
118 }
119 }
120 }
121 return null;
122}
123
124let didWarnAboutMaps;
125let didWarnAboutGenerators;

Callers 3

throwOnInvalidObjectTypeFunction · 0.85
warnOnFunctionTypeFunction · 0.85
warnOnSymbolTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected