Skip to content

Commit 819b29c

Browse files
authored
Include page functions in TypedUseInfiniteQueryHookResult (#5165)
1 parent 9af97ca commit 819b29c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,10 @@ export type UseInfiniteQueryHookResult<
10781078
D extends InfiniteQueryDefinition<any, any, any, any, any>,
10791079
R = UseInfiniteQueryStateDefaultResult<D>,
10801080
> = UseInfiniteQueryStateResult<D, R> &
1081-
Pick<UseInfiniteQuerySubscriptionResult<D>, 'refetch'>
1081+
Pick<
1082+
UseInfiniteQuerySubscriptionResult<D>,
1083+
'refetch' | 'fetchNextPage' | 'fetchPreviousPage'
1084+
>
10821085

10831086
export type TypedUseInfiniteQueryHookResult<
10841087
ResultType,

0 commit comments

Comments
 (0)