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

Function serializeQueryKey

cli/src/hooks/use-activity-query.ts:165–167  ·  view source on GitHub ↗

* Serialize a query key to a string for cache lookup.

(queryKey: readonly unknown[])

Source from the content-addressed store, hash-verified

163 * Serialize a query key to a string for cache lookup.
164 */
165function serializeQueryKey(queryKey: readonly unknown[]): string {
166 return JSON.stringify(queryKey)
167}
168
169// Module-level map to track GC timeouts (survives component unmount)
170const gcTimeouts = new Map<string, ReturnType<typeof setTimeout>>()

Callers 13

useActivityQueryFunction · 0.85
invalidateActivityQueryFunction · 0.85
removeActivityQueryFunction · 0.85
getActivityQueryDataFunction · 0.85
setActivityQueryDataFunction · 0.85
setErrorOnlyCacheEntryFunction · 0.85
getRetryCountFunction · 0.85
setRetryCountFunction · 0.85
getRetryTimeoutFunction · 0.85
setRefCountFunction · 0.85
setFetchingFunction · 0.85
getInFlightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected