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,