Skip to content

Commit 7a8ee0a

Browse files
authored
Fix e2e flake by not consuming abort signal in apiq query options helper (#2614)
don't consume abort signal in apiq query function
1 parent 0b5220a commit 7a8ee0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/api/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const getApiQueryOptions =
108108
queryOptions({
109109
queryKey: [method, params],
110110
// no catch, let unexpected errors bubble up
111-
queryFn: ({ signal }) => api[method](params, { signal }).then(handleResult(method)),
111+
queryFn: () => api[method](params).then(handleResult(method)),
112112
// In the case of 404s, let the error bubble up to the error boundary so
113113
// we can say Not Found. If you need to allow a 404 and want it to show
114114
// up as `error` state instead, pass `useErrorBoundary: false` as an

0 commit comments

Comments
 (0)