You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
streamedQuery returns QueryFunction<Array<TQueryFnData>, TQueryKey>, but useInfinitQuery expects a queryFn with type QueryFunction<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
I would expect to useInfiniteQuery, and new data from a streamed query is automatically added to the last page of results that useInfiniteQuery returns.
Tanstack Query adapter
react-query
TanStack Query version
v5.69.0
The text was updated successfully, but these errors were encountered:
yes, this is a known limitation. it can’t work with infinite queries, we’d need a separate version streamedInfniteQuery. I’m holding back because we’d need this to make it work:
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
The text was updated successfully, but these errors were encountered: