Open nickurt opened 4 days ago
I can't set the defaultPerPage anymore for my DataTables (nothing in my session), it always fallbacks to the first option of the setPerPageAccepted (for me, 10 instead of 25).
Looks like this part of code is affected - https://github.com/rappasoft/laravel-livewire-tables/blob/master/src/Traits/WithPagination.php#L58-L65
public function configure(): void { $this->setPerPageAccepted([10, 25, 50, 100])->setDefaultPerPage(25); }
When I'm using this, the page always shows me 10 results instead of the default 25, while I have nothing in my session for per/page value.
3.5.0
8.3.x
11.30.0
3.14.3
Tailwind 3.x
No response
Have you tried clearing the cache?
php artisan optimize:clear
Yes, no effect at all
Thanks for raising, will takw a look this weekend
What happened?
I can't set the defaultPerPage anymore for my DataTables (nothing in my session), it always fallbacks to the first option of the setPerPageAccepted (for me, 10 instead of 25).
Looks like this part of code is affected - https://github.com/rappasoft/laravel-livewire-tables/blob/master/src/Traits/WithPagination.php#L58-L65
How to reproduce the bug
When I'm using this, the page always shows me 10 results instead of the default 25, while I have nothing in my session for per/page value.
Package Version
3.5.0
PHP Version
8.3.x
Laravel Version
11.30.0
Alpine Version
3.14.3
Theme
Tailwind 3.x
Notes
No response
Error Message
No response