swr-infinite pagination
misa-minic opened this issue · comments
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!
Will post this in the discussion section.