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