MCPcopy
hub / github.com/21st-dev/1code / invalidateProjectIcon

Function invalidateProjectIcon

src/renderer/lib/hooks/use-project-icon.ts:38–44  ·  view source on GitHub ↗
(projectId: string)

Source from the content-addressed store, hash-verified

36 * Revokes the blob URL and removes the cache entry so the hook re-fetches.
37 */
38export function invalidateProjectIcon(projectId: string) {
39 const cached = fileIconCache.get(projectId)
40 if (cached) {
41 URL.revokeObjectURL(cached)
42 fileIconCache.delete(projectId)
43 }
44}
45
46interface ProjectIconData {
47 id: string

Callers 1

ProjectDetailFunction · 0.90

Calls 2

getMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected