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
LeandroFerreira11mo ago
are you using a table in the custom page?
stanwarri
stanwarriOP11mo ago
No, I’m not using table but forms
LeandroFerreira
LeandroFerreira11mo ago
So, why you are trying to use resetPage() ?
stanwarri
stanwarriOP11mo ago
I have custom filters, and I when a filter is selected, I want to update the results shown on the page.
LeandroFerreira
LeandroFerreira11mo ago
Share some code to explain what you are trying to achieve
Solution
stanwarri
stanwarri11mo ago
Thanks for your support. I was able to figure it out. resetPage() method is only available in the Livewire\WithPagination trait.
LeandroFerreira
LeandroFerreira11mo ago
Yep, available in tables
stanwarri
stanwarriOP11mo ago
Thanks for the heads up. Now I see why you're asking if I was using table
Want results from more Discord servers?
Add your server