Answer the question
In order to leave comments, you need to log in
Why does react-bootstrap-4-pagination output extra pages?
when using react-bootstrap-4-pagination, I see this picture. total 11 pages.
pagination config
totalPages: 11,
currentPage: 10,
showMax: (totalPages === currentPage)? 1 : 5,
size: "md",
threeDots: true,
prevNext: true,
onClick: (page) => {
callback(page);
let url = new URL(window.location.href);
url.searchParams.delete('page');
if (page > 1) {
url.searchParams.append('page', page);
}
history.pushState('', '', url.toString());
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question