fix: refine FetchPromise execution in useApiInfiniteQuery

Updated the FetchPromise execution in the useApiInfiniteQuery function to include a refine parameter, enhancing the request handling process.
This commit is contained in:
dswbx
2025-10-13 10:46:04 +02:00
parent fd3dd310a5
commit 3f9be3a418

View File

@@ -54,7 +54,7 @@ export const useApiInfiniteQuery = <
return promise(index).request.url; return promise(index).request.url;
}, },
(url: string) => { (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, revalidateFirstPage: false,