resetPage does not exist on custom page

I created a custom filament page and I'm trying to use the Livewire $this->resetPage() method but I'm getting resetPage does not exist. error. I thought custom pages are full livewire components as stated in the documentation
Solution:
Thanks for your support. I was able to figure it out. resetPage() method is only available in the Livewire\WithPagination trait.
Jump to solution
8 Replies
LeandroFerreira
are you using a table in the custom page?
stanwarri
stanwarriOP2y ago
No, I’m not using table but forms
LeandroFerreira
So, why you are trying to use resetPage() ?
stanwarri
stanwarriOP2y ago
I have custom filters, and I when a filter is selected, I want to update the results shown on the page.
LeandroFerreira
Share some code to explain what you are trying to achieve
Solution
stanwarri
stanwarri2y ago
Thanks for your support. I was able to figure it out. resetPage() method is only available in the Livewire\WithPagination trait.
LeandroFerreira
Yep, available in tables
stanwarri
stanwarriOP2y ago
Thanks for the heads up. Now I see why you're asking if I was using table

Did you find this page helpful?