In useSWRInfinite
, the pageIndex
always ends with 0
when console.log
#2741
Unanswered
devjiwonchoi
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 aware of
swr
revalidating the first page, related issue #1401. Is it also an expected behavior for thepageIndex
?Note that I've tried
revalidateFirstPage: false
Background
route.ts
Increments, but ends up with
0
, eventually fails to paginate.Client Side Fetch to
route api
Beta Was this translation helpful? Give feedback.
All reactions