Lazy-load GitHub picker queries

This commit is contained in:
Mohamed Boudra
2026-04-22 20:00:43 +07:00
parent 8e63274ce6
commit 368ce0339a
5 changed files with 27 additions and 4 deletions
+1 -1
View File
@@ -790,7 +790,7 @@ export function Composer({
limit: 20,
});
},
enabled: isConnected && !!client && cwd.trim().length > 0,
enabled: isGithubPickerOpen && isConnected && !!client && cwd.trim().length > 0,
staleTime: 30_000,
});