From 7a8ee0abbbe8901ad83e44c4e4638db1e0857ab1 Mon Sep 17 00:00:00 2001 From: David Crespo Date: Wed, 11 Dec 2024 10:27:10 -0600 Subject: [PATCH] Fix e2e flake by not consuming abort signal in `apiq` query options helper (#2614) don't consume abort signal in apiq query function --- app/api/hooks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/hooks.ts b/app/api/hooks.ts index 8cac13b43..23a374c54 100644 --- a/app/api/hooks.ts +++ b/app/api/hooks.ts @@ -108,7 +108,7 @@ export const getApiQueryOptions = queryOptions({ queryKey: [method, params], // no catch, let unexpected errors bubble up - queryFn: ({ signal }) => api[method](params, { signal }).then(handleResult(method)), + queryFn: () => api[method](params).then(handleResult(method)), // In the case of 404s, let the error bubble up to the error boundary so // we can say Not Found. If you need to allow a 404 and want it to show // up as `error` state instead, pass `useErrorBoundary: false` as an