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:
committed by
gsxdsm
parent
3ca3b5e471
commit
228daa8f35
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user