streamedQuery
does not work with useInfiniteQuery
#8867
Unanswered
lukedukeus
asked this question in
Q&A
Replies: 1 comment
-
yes, this is a known limitation. it can’t work with infinite queries, we’d need a separate version |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
streamedQuery
does not work withuseInfiniteQuery
.streamedQuery
returnsQueryFunction<Array<TQueryFnData>, TQueryKey>
, butuseInfinitQuery
expects aqueryFn
with typeQueryFunction<TQueryFnData, TQueryKey, TPageParam> | SkipToken
If this is by design, or there is some logical reason why this shouldn't be possible feel free to convert it to a discussion
Steps to reproduce
Expected behavior
I would expect to
useInfiniteQuery
, and new data from a streamed query is automatically added to the last page of results thatuseInfiniteQuery
returns.Tanstack Query adapter
react-query
TanStack Query version
v5.69.0
Beta Was this translation helpful? Give feedback.
All reactions