From f7b98124773108f4631a22c63d1d34e9ab185f02 Mon Sep 17 00:00:00 2001 From: Ryan Sutton Date: Fri, 1 May 2026 05:23:38 +0000 Subject: [PATCH] fix(repo-selector): preserve results while searching Use React Query's placeholderData to keep the prior page of repositories visible while a new search query is loading. Previously the list would flash empty between keystrokes as the query key changed. Generated-By: PostHog Code Task-Id: f099786b-f5df-49dc-9c35-335accd2772c --- apps/code/src/renderer/hooks/useIntegrations.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/code/src/renderer/hooks/useIntegrations.ts b/apps/code/src/renderer/hooks/useIntegrations.ts index 9bf21542f..620a412f0 100644 --- a/apps/code/src/renderer/hooks/useIntegrations.ts +++ b/apps/code/src/renderer/hooks/useIntegrations.ts @@ -121,6 +121,7 @@ export function useGithubRepositories( }, enabled: queryEnabled, staleTime: 5 * 60 * 1000, + placeholderData: (prev: unknown) => prev, meta: AUTH_SCOPED_QUERY_META, })), combine: (results) => {