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

Function resolveCache

packages/react-server/src/flight/ReactFlightAsyncDispatcher.js:15–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13import {resolveOwner} from './ReactFlightCurrentOwner';
14
15function resolveCache(): Map<Function, mixed> {
16 const request = resolveRequest();
17 if (request) {
18 return getCache(request);
19 }
20 return new Map();
21}
22
23export const DefaultAsyncDispatcher: AsyncDispatcher = ({
24 getCacheForType<T>(resourceType: () => T): T {

Callers 1

getCacheForTypeFunction · 0.85

Calls 2

resolveRequestFunction · 0.90
getCacheFunction · 0.90

Tested by

no test coverage detected