Skip to content

Is the page property of the Pagination widget zero-based? #5303

Answered by Haroenv
nino-cast asked this question in Q&A
Discussion options

You must be logged in to vote

The defaultRefinement and searchState is 1-based, as that's what users would be expecting to see. As a refinement of 0 would not be possible, the connector doesn't deal with that as expected, and still shows the first page. This means that your component is behaving exactly as expected, but you should use defaultRefinement={1}, not 0

Replies: 0 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@nino-cast
Comment options

Answer selected by nino-cast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Library: React InstantSearch < 7 Issues in any of the react-instantsearch@6 packages
2 participants