From f2cdef2bb93dd9b00159b8b4c437a5bb1323f39c Mon Sep 17 00:00:00 2001 From: Matt Rothenberg Date: Thu, 9 Apr 2020 16:15:18 -0400 Subject: [PATCH] [react-query] expose canFetchMore boolean on useInfiniteQuery result (#43771) * fix: expose canFetchMore boolean on useInfiniteQuery result * Update types/react-query/index.d.ts Co-Authored-By: Igor Oleinikov Co-authored-by: Igor Oleinikov --- types/react-query/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/react-query/index.d.ts b/types/react-query/index.d.ts index 1b17ce8efe..480fb84da6 100644 --- a/types/react-query/index.d.ts +++ b/types/react-query/index.d.ts @@ -289,6 +289,7 @@ export type PaginatedQueryResult = export interface InfiniteQueryResult extends QueryResultBase { data: TResult[]; isFetchingMore: boolean; + canFetchMore: boolean | undefined; fetchMore: (moreVariable?: TMoreVariable | false) => Promise | undefined; }