🐛(front) disable retries in useQuery and useInfiniteQuery

The default options in TanStack Query don't make sense for these purposes
and were inducing a need for long timeouts in Playwright tests. (Personal
aside: I consider timeouts in Playwright as a testing smell.)
This commit is contained in:
Laurent Bossavit
2025-03-19 20:37:57 +01:00
committed by Laurent Bossavit
parent 6b2ca88ff2
commit e63c31f960
6 changed files with 10 additions and 9 deletions

View File

@@ -66,6 +66,7 @@ export function useMailDomains(
getNextPageParam(lastPage, allPages) {
return lastPage.next ? allPages.length + 1 : undefined;
},
retry: 0,
...queryConfig,
});
}

View File

@@ -34,5 +34,6 @@ export function useTeams(params: TeamsParams) {
return useQuery({
queryKey: [KEY_LIST_TEAM, params],
queryFn: () => getTeams(params),
retry: 0,
});
}