Skip to content

Commit 9e0465b

Browse files
committed
Loosen infinite query default page fields to boolean
1 parent 43417d7 commit 9e0465b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/toolkit/src/query/react/buildHooks.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,10 +1234,10 @@ type UseInfiniteQueryStateBaseResult<
12341234
* Query is currently in "error" state.
12351235
*/
12361236
isError: false
1237-
hasNextPage: false
1238-
hasPreviousPage: false
1239-
isFetchingNextPage: false
1240-
isFetchingPreviousPage: false
1237+
hasNextPage: boolean
1238+
hasPreviousPage: boolean
1239+
isFetchingNextPage: boolean
1240+
isFetchingPreviousPage: boolean
12411241
}
12421242

12431243
type UseInfiniteQueryStateDefaultResult<

0 commit comments

Comments
 (0)