Pagination in our elixir and phoenix application is not working beyond 100 page

Pagination in our elixir and phoenix application is not working beyond 100th page with 10 records per page.
Till 100th page it is working fine. Once we click on the 101th page in the pagination, then it takes me to the last page. Is there any limit for 100 pages ?

We use kerosene in mix dependency.
{:kerosene, “~> 0.9”}

I have never used the mentioned pagination library but from the looks of it the default max_page value is set to 100.

You should be able to configure it the same way you configured the per_page constraint.

defmodule MyApp.Repo do
  use Ecto.Repo, 
    otp_app: :testapp,
    adapter: Ecto.Adapters.Postgres
  use Kerosene, per_page: 10, max_page: 100
end
2 Likes

Thanks it works now with customization.