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

Function if

packages/react-client/src/ReactFlightClient.js:418–420  ·  view source on GitHub ↗
(debugChannel.callback)

Source from the content-addressed store, hash-verified

416
417function closeDebugChannel(debugChannel: DebugChannel): void {
418 if (debugChannel.callback) {
419 debugChannel.callback('');
420 }
421}
422
423// If FinalizationRegistry doesn't exist, we cannot use the debugChannel.

Callers 2

ReactPromiseFunction · 0.70

Calls 9

markAllTracksInOrderFunction · 0.90
initializeDebugChunkFunction · 0.85
getComponentNameFromTypeFunction · 0.85
isArrayFunction · 0.85
closeDebugChannelFunction · 0.85
errorMethod · 0.65
pushMethod · 0.65
hasMethod · 0.65
testMethod · 0.45

Tested by

no test coverage detected