MCPcopy Create free account
hub / github.com/github/docs / getDOMCached

Function getDOMCached

tests/helpers/e2etest.js:63–69  ·  view source on GitHub ↗
(route, options)

Source from the content-addressed store, hash-verified

61const getDOMCache = new Map()
62
63export async function getDOMCached(route, options) {
64 const cacheKey = `${route}:${options ? JSON.stringify(options) : ''}`
65 if (!getDOMCache.has(cacheKey)) {
66 getDOMCache.set(cacheKey, getDOM(route, options))
67 }
68 return getDOMCache.get(cacheKey)
69}
70
71export async function getDOM(
72 route,

Callers

nothing calls this directly

Calls 1

getDOMFunction · 0.85

Tested by

no test coverage detected