Load more using the cached results #1606
Unanswered
grantspilsbury
asked this question in
Q&A
Replies: 1 comment
-
I have found the infinite loading docs https://swr.vercel.app/docs/pagination |
Beta Was this translation helpful? Give feedback.
0 replies
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,
I am implementing a 'Load more' Storyblok stories button.
When the page loads I fetch stories 1 - 10 and display them. When the user clicks 'Load more' I want to display stories 1 - 20 and so on.
I am using SWR to help manage the fetching of the stories.
My question is: I fetch stories 1-10. When I fetch stories 1-20 will swr return stories 1-10 from the cache and 11-20 from Storyblok? Or because it is a different GET query all 20 stories will be fetched?
Beta Was this translation helpful? Give feedback.
All reactions