Skip to content

Commit

Permalink
remove previous data
Browse files Browse the repository at this point in the history
  • Loading branch information
Safouen Turki committed Oct 3, 2024
1 parent c37e901 commit 64a7bc3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/modules/clusters/clusters-list/hooks/useClusters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@ const useClusters = (
page: number,
searchParams: any,
): UseQueryResult<ClusterListResponse, Error> => {
return useQuery(["clusters", type, page, searchParams], () =>
fetchClusters(type, page, searchParams),
return useQuery(
["clusters", type, page, searchParams],
() => fetchClusters(type, page, searchParams),
{
keepPreviousData: false,
cacheTime: 0,
},
);
};

Expand Down

0 comments on commit 64a7bc3

Please sign in to comment.