Reload InfoList after Update in RelationManger
On a ViewPage I use InfoLists to show data. Below the InfoList I display a RelationManger. If I edit data via the RelationManger the data in the InfoList dont update. How can I solve this?
Solution:Jump to solution
solution:
->after(fn(Component $livewire) => $livewire->dispatch('updateViewUser')),
where Component = Livewire\Component...
2 Replies
I solved it using a listener and the "updated" hook from livewire + dispatching an event. but I cant listen for deletes.
how one can dispatch an event in the ->after() callback?
this->dispatch dont work
Solution
solution:
->after(fn(Component $livewire) => $livewire->dispatch('updateViewUser')),
where Component = Livewire\Component