How to refresh the whole form, with relationmanagers, after an action?
refreshFormData refreshes just some fields, I want to refresh the whole page, like reload, but not loading the CSS etc, just the Livewire refresh for the shole page.
Is it possible?
1 Reply
I'm using this
#[On('refreshForm')]
public function refreshForm(): void
{
if(isset($this->record))
{
$this->mount($this->record->id);
} else {
$this->mount();
}
}
And
$livewire->dispatch('refreshForm');
And it works, both for forms and RelationManager, maybe it's good to include in the core