🐛(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:
committed by
Laurent Bossavit
parent
6b2ca88ff2
commit
e63c31f960
@@ -66,6 +66,7 @@ export function useMailDomains(
|
||||
getNextPageParam(lastPage, allPages) {
|
||||
return lastPage.next ? allPages.length + 1 : undefined;
|
||||
},
|
||||
retry: 0,
|
||||
...queryConfig,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -34,5 +34,6 @@ export function useTeams(params: TeamsParams) {
|
||||
return useQuery({
|
||||
queryKey: [KEY_LIST_TEAM, params],
|
||||
queryFn: () => getTeams(params),
|
||||
retry: 0,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user