May 28, 2024
0
Level 14
How do you refresh a relation manager after editing the relative form?
I can get the Livewire event listener to work, but I can't find how to refresh the relation manager table to refresh after updating the relative record form on the same page? I can get the form itself to update fields using the following, but how can we update the whole form, the relation manager list table, or a table in general? Where is this in the documentation? Also, can you call $refresh using #[On]? I couldn't find info on Livewire about that either. I tried$listeners['recordFormUpdated'=> '$refresh'], but it didn't do anything. Thanks
#[On('record-updated')]
public function recordFormUpdated(): void
{
$this->refreshFormData(['terminated_at', 'approved_at']);
}
Please or to participate in this conversation.