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

Function createMap

packages/react-devtools-shared/src/inspectedElementCache.js:50–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48type CacheSeedKey = () => InspectedElementMap;
49
50function createMap(): InspectedElementMap {
51 return new WeakMap();
52}
53
54function getRecordMap(): WeakMap<Element, Thenable<InspectedElementFrontend>> {
55 return getCacheForType(createMap);

Callers 2

createCacheSeedFunction · 0.70
clearCacheBecauseOfErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected