The resetPage() is not executed when a property is updated trough a method.
It is executed only when the property is updated trough a binded with an input in blade.
In the following scenario, the resetPage() is NOT executed.
public $test;
public function updatingTest() {
$this->resetPage();
}
public function changeTest($value)
{
$this->test = $value;
}
Then, into the blade file, I have the following to trigger the method and update the propriety.
P.S. - Into the real-life scenario I need the method to do more than just change the propriety value. But there is also a need to resetPage().
<a href="#" wire:click.prevent="changeTest('NewTestValue')">Click to change the value of Test </a>
Any suggestion on how I can get the resetPage() executed in that method (or in any other custom methods) ?
Thank you very much,