Skip to content

Commit 12baf90

Browse files
fix: hasNextPage return value
1 parent 3d155b7 commit 12baf90

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/use-dataloader/src/useInfiniteDataLoader.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,8 @@ export const useInfiniteDataLoader = <
199199
isError,
200200
isLoading,
201201
isSuccess,
202-
hasNextPage: false,
202+
hasNextPage: nextPageRef.current !== undefined,
203203
isLoadingFirstPage,
204-
pageData: undefined,
205204
data: isLoadingFirstPage
206205
? initialData
207206
: (requestRefs.current

0 commit comments

Comments
 (0)