Refresh infolist repeater containing a relationship on action

Hey, I was wondering if there are any methods to refresh a repeater in an infolist through an action I've got an action (inside the infolist, not on header) that is adding records to the relationship and should refresh the repeater so that they will show but nothing happens I already tried to refresh the livewire component from $livewire->dispatch('$refresh') with no results Thx for any help!
1 Reply
skyrowl
skyrowlOP4mo ago
just in case someone needs it, here's a workaround even if I don't think it's a real solution
Action::make('action')
->after(fn(LivewireComponent $livewire) => $livewire->infolist->getRecord()->refresh())
Action::make('action')
->after(fn(LivewireComponent $livewire) => $livewire->infolist->getRecord()->refresh())

Did you find this page helpful?