Skip to content
Discussion options

You must be logged in to vote
  1. No, swr will still fire the request
const { data } = useSWR(['/api', null], (...args) => {
  console.log(...args) // api null
})
  1. items in the array key could be object. But swr shallowly compares (===) the arguments on every render, and triggers revalidation if any of them has changed. Arguments
  2. The docs does have a section about Pagination

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by colinhacks
Comment options

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