MCPcopy Index your code
hub / github.com/react/react / getDebugChannel

Function getDebugChannel

fixtures/flight/server/region.js:67–76  ·  view source on GitHub ↗
(req)

Source from the content-addressed store, hash-verified

65}
66
67function getDebugChannel(req) {
68 if (process.env.NODE_ENV !== 'development') {
69 return undefined;
70 }
71 const requestId = req.get('rsc-request-id');
72 if (!requestId) {
73 return undefined;
74 }
75 return activeDebugChannels.get(requestId);
76}
77
78async function renderApp(res, returnValue, formState, noCache, debugChannel) {
79 const {renderToPipeableStream} = await import(

Callers 1

region.jsFile · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected