Replies: 4 comments 3 replies
-
This sounds like a good idea. Or, we can even provide an option like |
Beta Was this translation helpful? Give feedback.
-
I just experimented with the But there are some considerations for the option.
There's also another request related to this. This is a feature request to revalidate a specific page like |
Beta Was this translation helpful? Give feedback.
-
Could we possibly get that feature? There is still a need for that. |
Beta Was this translation helpful? Give feedback.
-
I've added a feature to revalidate specific pages by passing a function to the |
Beta Was this translation helpful? Give feedback.
-
Currently
useSWRInfinite
only revalidate the first page. This is okay when we sort pages by latest to oldest. If it's the other way arounduseSWRInfinite
only revalidate for a page which is not going to change. (most of the time)I think it'll be great, if there's an option to revalidate the last page & the first page. Here's I'm talking about the last page of the whole list. Not the last page at a given time.
If that's the case, maybe we can revalidate it automatically without passing any option.
Beta Was this translation helpful? Give feedback.
All reactions