From a4374eb06b7675477deacb59ab640842f6c83c22 Mon Sep 17 00:00:00 2001 From: David Crespo Date: Tue, 10 Dec 2024 18:23:40 -0600 Subject: [PATCH] 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