resetPage() doesn't work

What seems to be the problem: resetPage() doesn’t work after filtering data

Steps to Reproduce: make livewire component

Are you using the latest version of Livewire: yes

Do you have any screenshots or code examples:yes

resetPage() doesn’t work on my livewire component .

My modest opinion is don’t resetPage() in updatedProperty method, instead do it in the updated(). The thing is updatedSearch is listening for the search property events, but the idea is reset pagination after do some action with items, for example if you delete one of them the pagination will be reseted, but if you are listening for the updatedProperty while doing another action the resetPage() don’t be called

1 Like

thank you…i will try it

hey, @bigidici

Try

public function updateSearch()
{
   $this->reset($this->search);
   $this->goToPage(1);
}