From 3f9be3a4182ff772b833a4f7d65f8fa845b11420 Mon Sep 17 00:00:00 2001 From: dswbx Date: Mon, 13 Oct 2025 10:46:04 +0200 Subject: [PATCH] fix: refine FetchPromise execution in useApiInfiniteQuery Updated the FetchPromise execution in the useApiInfiniteQuery function to include a refine parameter, enhancing the request handling process. --- app/src/ui/client/api/use-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/ui/client/api/use-api.ts b/app/src/ui/client/api/use-api.ts index 4571bd9..6b6d546 100644 --- a/app/src/ui/client/api/use-api.ts +++ b/app/src/ui/client/api/use-api.ts @@ -54,7 +54,7 @@ export const useApiInfiniteQuery = < return promise(index).request.url; }, (url: string) => { - return new FetchPromise(new Request(url), { fetcher: api.fetcher }).execute(); + return new FetchPromise(new Request(url), { fetcher: api.fetcher }, refine).execute(); }, { revalidateFirstPage: false,