mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 08:06:00 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user