Refreshing Form F v2

I have a scenario in which I alter saved model properties using model events: static::saving() ... As a result I need to refresh the form fields after being saved, because they are sometimes changed on the backend. Using filament v2 here...I cannot get this to work. On my edit page of resource:
protected $listeners = ['refreshFormData' => '$refresh'];

protected function afterSave(): void
{
$this->dispatchBrowserEvent('refreshFormData');
}
protected $listeners = ['refreshFormData' => '$refresh'];

protected function afterSave(): void
{
$this->dispatchBrowserEvent('refreshFormData');
}
This does't work. Have any ideas?
0 Replies
No replies yetBe the first to reply to this messageJoin