F
Filament5mo ago
danzzz

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:
solution: ->after(fn(Component $livewire) => $livewire->dispatch('updateViewUser')), where Component = Livewire\Component...
Jump to solution
2 Replies
danzzz
danzzz5mo ago
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
danzzz
danzzz5mo ago
solution: ->after(fn(Component $livewire) => $livewire->dispatch('updateViewUser')), where Component = Livewire\Component