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

Function getIOLongName

packages/react-client/src/ReactFlightPerformanceTrack.js:305–317  ·  view source on GitHub ↗
(
  ioInfo: ReactIOInfo,
  description: string,
  env: void | string,
  rootEnv: string,
)

Source from the content-addressed store, hash-verified

303}
304
305function getIOLongName(
306 ioInfo: ReactIOInfo,
307 description: string,
308 env: void | string,
309 rootEnv: string,
310): string {
311 const name = ioInfo.name;
312 const longName = description === '' ? name : name + ' (' + description + ')';
313 const isPrimaryEnv = env === rootEnv;
314 return isPrimaryEnv || env === undefined
315 ? longName
316 : longName + ' [' + env + ']';
317}
318
319function getIOShortName(
320 ioInfo: ReactIOInfo,

Callers 5

logComponentAwaitAbortedFunction · 0.85
logComponentAwaitErroredFunction · 0.85
logComponentAwaitFunction · 0.85
logIOInfoErroredFunction · 0.85
logIOInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected