Skip to content

Commit

Permalink
remove caching
Browse files Browse the repository at this point in the history
  • Loading branch information
benakansara committed Nov 27, 2024
1 parent e696876 commit d1dd4c9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ export const useFetchAlertsFieldsQuery = (
);

return useQuery({
queryKey: queryKeyPrefix.concat(featureIds),
// queryKey: queryKeyPrefix.concat(featureIds),
queryFn: () => fetchAlertsFields({ http, featureIds: validFeatureIds }),
placeholderData: { browserFields: {}, fields: [] },
staleTime: 60 * 1000,
// staleTime: 60 * 1000,
refetchOnWindowFocus: false,
...options,
enabled: validFeatureIds.length > 0 && (options?.enabled == null || options.enabled),
Expand Down

0 comments on commit d1dd4c9

Please sign in to comment.