Clean filters

I create custom pages to show 2 or 3 widgets, all has
use HasFiltersForm;
use HasFiltersForm;
I need when navigate and comeback to the pages, the filters set null. I try: mount $this->filters = null; on custom page, not working mount $this->filters = null; on widget and got an error cannot mutate filters. How can i solve this?
2 Replies
marianov24
marianov248mo ago
i forget, on custom page, could dd :
public function filtersForm(Form $form): Form
{
dd($form);
return ......
}
public function filtersForm(Form $form): Form
{
dd($form);
return ......
}
i can see filters livewire-> filters , but i cannot access 😦
tuto1902
tuto19027mo ago
Try setting this property to false. It is true by default.
use HasFiltersForm;
protected bool $persistsFiltersInSession = false;
use HasFiltersForm;
protected bool $persistsFiltersInSession = false;