(route, options)
| 61 | const getDOMCache = new Map() |
| 62 | |
| 63 | export 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 | |
| 71 | export async function getDOM( |
| 72 | route, |