From ffdd2ff0b82e32587526a66cedd65ec321cda4e1 Mon Sep 17 00:00:00 2001 From: dextmorgn Date: Thu, 13 Nov 2025 18:45:12 +0100 Subject: [PATCH] fix(app): revert infinite refetch --- flowsint-app/src/hooks/use-action-items.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flowsint-app/src/hooks/use-action-items.ts b/flowsint-app/src/hooks/use-action-items.ts index 6f0ddd8a..d04fd97f 100644 --- a/flowsint-app/src/hooks/use-action-items.ts +++ b/flowsint-app/src/hooks/use-action-items.ts @@ -6,6 +6,8 @@ export const useActionItems = () => { const { data: actionItems, isLoading } = useQuery({ queryKey: ['actionItems'], queryFn: () => sketchService.types(), + refetchOnWindowFocus: false, // Prevent refetch on window focus + refetchOnMount: false // Prevent refetch on component mount if data exists }) return { actionItems,