feat(FN-4854): complete Step 1 — extend cache keys and diagnostics

Fusion-Task-Id: FN-4854
Fusion-Task-Lineage: 969ec04a-efe3-4dee-b183-2d4f2de6b388
This commit is contained in:
Fusion (runfusion.ai)
2026-05-17 00:19:19 -07:00
committed by gsxdsm
parent 3ca3b5e471
commit 228daa8f35
3 changed files with 19 additions and 0 deletions

View File

@@ -81,6 +81,9 @@ export function useProjects(): UseProjectsResult {
if (!Array.isArray(cached)) {
return [];
}
if (cached.length > 0) {
console.info("[swr-cache] hit projects=", cached.length);
}
return normalizeProjects(cached);
});
const [loading, setLoading] = useState(() => projects.length === 0);