(queryKey: readonly unknown[])
| 521 | * Remove a query from the cache entirely. |
| 522 | */ |
| 523 | export function removeActivityQuery(queryKey: readonly unknown[]): void { |
| 524 | const key = serializeQueryKey(queryKey) |
| 525 | |
| 526 | const existingTimeout = gcTimeouts.get(key) |
| 527 | if (existingTimeout) { |
| 528 | clearTimeout(existingTimeout) |
| 529 | gcTimeouts.delete(key) |
| 530 | } |
| 531 | |
| 532 | deleteCacheEntry(key) |
| 533 | } |
| 534 | |
| 535 | /** |
| 536 | * Read cached data. |
no test coverage detected