Skip to content

Commit 9b191ea

Browse files
committed
Update the playgrounds
1 parent 572305a commit 9b191ea

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

playgrounds/react/src/App.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ import instantMeiliSearch from "./instant-meilisearch.js";
1515

1616
const searchClient = instantMeiliSearch(
1717
"https://demos.meilisearch.com",
18-
"dc3fedaf922de8937fdea01f0a7d59557f1fd31832cb8440ce94231cfdde7f25"
18+
"dc3fedaf922de8937fdea01f0a7d59557f1fd31832cb8440ce94231cfdde7f25",
19+
{
20+
paginationTotalHits: 60
21+
}
1922
);
2023

2124
class App extends Component {
@@ -52,7 +55,7 @@ class App extends Component {
5255
<div className="right-panel">
5356
<SearchBox />
5457
<Hits hitComponent={Hit} />
55-
<Pagination showLast={true}/>
58+
<Pagination showLast={true} />
5659
</div>
5760
</InstantSearch>
5861
</div>

playgrounds/vue/src/App.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
</ais-hits>
4242

4343
<ais-pagination :padding="4" />
44+
45+
<ais-configure
46+
:hits-per-page.camel="6"
47+
/>
4448
</div>
4549
</ais-instant-search>
4650
</div>
@@ -58,8 +62,7 @@ export default {
5862
"https://demos.meilisearch.com",
5963
"dc3fedaf922de8937fdea01f0a7d59557f1fd31832cb8440ce94231cfdde7f25",
6064
{
61-
hitsPerPage: 6,
62-
limitPerRequest: 100
65+
paginationTotalHits: 60
6366
}
6467
)
6568
};

0 commit comments

Comments
 (0)