Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Rafaelindriago's avatar

Livewire 3 pagination don't work after page 2

Hello guys! I'm developing an app with Laravel 11, Livewire 3 and Bootstrap 5, i builded a trait called WithDataTable to create data table components, but the pagination action "nextPage" don't work after the page 2, i tried to use tailwind theme and nothing, using custom view and nothing, calling next page from browser console and nothing, even remove the use of WithoutUrlPagination and nothing. 😢

0 likes
4 replies
Rafaelindriago's avatar

Also, i'm using UUIDs for primary keys, can be this the problem?

infureal's avatar

livewire.laravel.com/docs/pagination

There is big red alert.

You must use the WithPagination trait

Rafaelindriago's avatar

@infureal the problem was an Alpine component, if you don't use the WithPagination trait, it throws an Exception, but thanks for your answer. 😊

szilagyim's avatar

@Rafaelindriago I have the same error. I added the trait but it doesn't respond after the second page click. How did you solve it?

Please or to participate in this conversation.