How to increment the pageIndex in useSWRInfinite hooks? #2652
Replies: 1 comment
-
and one more question, is automatic refetch/revalidation at intervals using |
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
-
i try to implement infinite scroll from the example in docs using useSWRInfinite hooks, here's the code:
in the code above i use
pageIndex + 1
cuz the index is start from 1 not zero, but the problem is thepageIndex
doesn't incremented once setSize is called, am i missing something important step?Beta Was this translation helpful? Give feedback.
All reactions