Remove a cache entry if no query references it.
(cacheKey: string)
| 308 | |
| 309 | /** Remove a cache entry if no query references it. */ |
| 310 | function cleanupCacheEntry(cacheKey: string) { |
| 311 | for (const q of queries.values()) { |
| 312 | if (q.cacheKey === cacheKey || q.prevCacheKey === cacheKey) return; |
| 313 | } |
| 314 | cache.delete(cacheKey); |
| 315 | } |
| 316 | |
| 317 | // ── Query evaluation ───────────────────────────────────────────────────── |
| 318 |
no outgoing calls
no test coverage detected