State Management · Middle · Question 67 of 75

Which SWR hook implements "load more" pagination?

Explanation

You provide getKey(pageIndex, previousPageData), and setSize(size + 1) loads the next page. Return null to stop when there are no more pages.

Further reading

Problem with a question

State Management · Middle · question 67

Test yourself

Take the State Management · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz