Reactjs – UseQuery refetch everytime my component's state changes, even when I set enabled to false
I have this custom hook that used to fetch multiple requests import dashboardApi from '@api/dashboardApi' import { queryKeys } from '@constants/queryKeys' import { TOP_PROJECT_SORT } from '@models/projectCost' import { UseQueryOptions, UseQueryResult, useQuery } from '@tanstack/react-query' import { NotifyService } from…