MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / removeActivityQuery

Function removeActivityQuery

cli/src/hooks/use-activity-query.ts:523–533  ·  view source on GitHub ↗
(queryKey: readonly unknown[])

Source from the content-addressed store, hash-verified

521 * Remove a query from the cache entirely.
522 */
523export 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.

Callers 2

Calls 4

serializeQueryKeyFunction · 0.85
deleteCacheEntryFunction · 0.85
deleteMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected