mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +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;
|
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user