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

Function resolveRequest

packages/react-server/src/ReactFlightServer.js:845–852  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

843let currentRequest: null | Request = null;
844
845export function resolveRequest(): null | Request {
846 if (currentRequest) return currentRequest;
847 if (supportsRequestStorage) {
848 const store = requestStorage.getStore();
849 if (store) return store;
850 }
851 return null;
852}
853
854function serializeDebugThenable(
855 request: Request,

Callers 11

prefetchDNSFunction · 0.90
preconnectFunction · 0.90
preloadFunction · 0.90
preloadModuleFunction · 0.90
preinitStyleFunction · 0.90
preinitScriptFunction · 0.90
preinitModuleScriptFunction · 0.90
initFunction · 0.90
resolveCacheFunction · 0.90
cacheSignalFunction · 0.90
wrapperMethodFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected