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
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
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
thank you…i will try it
hey, @bigidici
Try
public function updateSearch()
{
$this->reset($this->search);
$this->goToPage(1);
}