Skip to content

Commit

Permalink
Fix e2e flake by not consuming abort signal in apiq query options h…
Browse files Browse the repository at this point in the history
…elper (#2614)

don't consume abort signal in apiq query function
  • Loading branch information
david-crespo authored Dec 11, 2024
1 parent 0b5220a commit 7a8ee0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a8ee0a

Please sign in to comment.