Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Usage:
{ paginationTotalHits: 50 } // default: 200
```

`hitsPerPage` has a value of `6` by default and can [be customized](#-hitsperpage).
`hitsPerPage` has a value of `20` by default and can [be customized](#-hitsperpage).

### Finite Pagination

Expand Down Expand Up @@ -385,7 +385,7 @@ We also suggest looking at [Meilisearch's search parameters](https://docs.meilis

```js
instantsearch.widgets.configure({
hitsPerPage: 6,
hitsPerPage: 20,
// other algoliasearch parameters
})
```
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/search-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function createSearchContext(

const pagination = createPaginationContext({
paginationTotalHits: options.paginationTotalHits,
hitsPerPage: instantSearchParams?.hitsPerPage,
hitsPerPage: instantSearchParams?.hitsPerPage, // 20 by default
page: instantSearchParams?.page,
})

Expand Down