mirror of
https://github.com/reconurge/flowsint.git
synced 2026-07-19 23:50:14 -05:00
fix(app): revert infinite refetch
This commit is contained in:
@@ -6,6 +6,8 @@ export const useActionItems = () => {
|
||||
const { data: actionItems, isLoading } = useQuery<ActionItem[]>({
|
||||
queryKey: ['actionItems'],
|
||||
queryFn: () => sketchService.types(),
|
||||
refetchOnWindowFocus: false, // Prevent refetch on window focus
|
||||
refetchOnMount: false // Prevent refetch on component mount if data exists
|
||||
})
|
||||
return {
|
||||
actionItems,
|
||||
|
||||
Reference in New Issue
Block a user