Limited documentation on array keys & pagination #710
Answered
by
promer94
colinhacks
asked this question in
Q&A
Replies: 2 comments
-
const { data } = useSWR(['/api', null], (...args) => {
console.log(...args) // api null
})
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
colinhacks
-
Ah thanks! I didn't know there was additional documentation at swr.vercel.com. Seems like they tried to add all the docs into the README and gave up at some point. Strange. Thanks for your help! |
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.
-
Having read the full docs, I'm still confused about the behavior when using array keys.
null
, does SWR cancel the request?I appreciate any help/clarification here.
Beta Was this translation helpful? Give feedback.
All reactions