swr-infinite pagination #508
Unanswered
misa-minic
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.
-
I am trying to find a way to update only a single resource from the data that can have multiple pages.
So, for example, when I update a post that is found on 3. "page" in the data that I received from swr response, how could I revalidate only that page?
I tried using global mutate by providing exact url (like: "&count=10&from=0"), and this worked but only for the first page, if I change params to "&count=10&from=10", so to fetch next 10 it doesn't work.
Also for the first one when it worked, it worked only when I adedd this prefix ("$inf$").
If you have any suggestions how this could be done, please let me know.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions