Skip to content

setSize not update the index params inside callback at the useSWRInfinite hooks #2709

Closed Answered by RealYukiSan
RealYukiSan asked this question in Q&A
Discussion options

You must be logged in to vote

ah it's my fault, the code if (prevPageData && !prevPageData.length) return null; prevent it from updating the keys

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RealYukiSan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant