Skip to content

Confused about usePagination's count #3443

Answered by segunadebayo
quangnmwork asked this question in Q&A
Discussion options

You must be logged in to vote

This must be an older version of Ark UI. The count prop is readonly and .setPage(...) was removed in v5.

To programmatically control the count, create a local state and pass that to the usePagination hook.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by segunadebayo
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