Replies: 1 comment 1 reply
-
what happens currently when you call |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi!
First of all, thank you for the amazing library!
I'm using
useInfiniteQuery
and I'm trying to trigger multiple concurrent page fetches usingfetchNextPage
and specifying thepageParam
manually, and I'm finding that it only results in one page being added to mydata
. Is there a way to work around this?e.g. If I do the following, I want to find pages 1, 5 and 10 in my
data
The use case is for incrementally fetching data for different date intervals (not necessarily in order) for a scheduler-like application. The reason I need to fetch multiple pages is that I sometimes need to fetch non-adjacent pages which requires multiple fetches due to the design of the backend service I'm working with.
EDIT: I realized just after posting this that I could probably make it work by changing the queryFn to fetch multiple pages, however, I'll keep the post open in case someone has a better solution :)
Beta Was this translation helpful? Give feedback.
All reactions