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

Function setQueryFetching

cli/src/hooks/use-activity-query.ts:133–143  ·  view source on GitHub ↗
(key: string, fetching: boolean)

Source from the content-addressed store, hash-verified

131}
132
133function setQueryFetching(key: string, fetching: boolean): void {
134 const wasFetching = cache.fetchingKeys.has(key)
135 if (fetching) cache.fetchingKeys.add(key)
136 else cache.fetchingKeys.delete(key)
137
138 if (wasFetching !== fetching) {
139 // bust memo so snapshot changes even if entry didn’t
140 snapshotMemo.delete(key)
141 notifyKeyListeners(key)
142 }
143}
144
145function incrementRefCount(key: string): void {
146 const current = cache.refCounts.get(key) ?? 0

Callers 3

useActivityQueryFunction · 0.85
setFetchingFunction · 0.85
simulateFailedFetchFunction · 0.85

Calls 2

notifyKeyListenersFunction · 0.85
deleteMethod · 0.80

Tested by

no test coverage detected