(queryKey: readonly unknown[])
| 511 | * Invalidate a query, causing it to refetch on next access. |
| 512 | */ |
| 513 | export function invalidateActivityQuery(queryKey: readonly unknown[]): void { |
| 514 | const key = serializeQueryKey(queryKey) |
| 515 | const entry = getCacheEntry(key) |
| 516 | if (!entry) return |
| 517 | setCacheEntry(key, { ...entry, dataUpdatedAt: 0 }) |
| 518 | } |
| 519 | |
| 520 | /** |
| 521 | * Remove a query from the cache entirely. |
no test coverage detected