Skip to content

Need help to understand UseInfiniteHits showPrevious behaviour #5974

Answered by Haroenv
weiklr asked this question in Q&A
Discussion options

You must be logged in to vote

The goal of showPrevious is to show the "most previous page that isn't already shown". So if you're using showPrevious, it would be more a situation like this:

  3
showMore
  3 4
showPrevious
2 3 4

The showPrevious method and button shouldn't be called when isFirstPage is true

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@weiklr
Comment options

Answer selected by weiklr
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