Skip to content
Discussion options

You must be logged in to vote

Hi @kcubero27!

For this situation, we actually recommend handling this outside of the pagination button. In your onClick function, you can add a debounce or cancel a request if another one happens in rapid succession. The reason being, it would be frustrating for an end user if they want to jump forward 3 pages, you have to press next and then wait each time for the data to load.

Also, when the data is loading, you should use the Skeleton Loader component.

Please let us know if you have any more questions!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andioneto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants