How to fetch individual page index using useSWRInfinite? #1954
Unanswered
scarletjack
asked this question in
Q&A
Replies: 0 comments
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.
-
Hi, not sure if this is possible, but how can I use
useSWRInfinite
to be able to query pages based on their index without downloading all previous pages in sequence?So in effect, calling
setSize(40)
and getting a single api call for that page, instead of refetching all previous pages up to page 40.Thank you.
Beta Was this translation helpful? Give feedback.
All reactions