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

Function invalidateActivityQuery

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

Source from the content-addressed store, hash-verified

511 * Invalidate a query, causing it to refetch on next access.
512 */
513export 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.

Callers 7

useUpdatePreferenceFunction · 0.90
useRefreshUsageFunction · 0.90
handleRunCompletionFunction · 0.90
handleRunErrorFunction · 0.90

Calls 3

serializeQueryKeyFunction · 0.85
getCacheEntryFunction · 0.85
setCacheEntryFunction · 0.85

Tested by

no test coverage detected