how to refresh relationship manager table?

Hi, i have a drop in action button (plugin) on my form. After this action, my relation managers must be updated/refreshed. My code:
DropInAction::make('test')
->disableLabel()
->execute(function (\Closure $get, \Closure $set, Livewire $livewire) {
return \Filament\Forms\Components\Actions\Action::make('add_default_properties')
->icon('heroicon-o-plus')
->label('Varsayılan Özellikleri Ekle')
->action(function () use ($get, $livewire) {
... // <--- my code is in here
});
}),
DropInAction::make('test')
->disableLabel()
->execute(function (\Closure $get, \Closure $set, Livewire $livewire) {
return \Filament\Forms\Components\Actions\Action::make('add_default_properties')
->icon('heroicon-o-plus')
->label('Varsayılan Özellikleri Ekle')
->action(function () use ($get, $livewire) {
... // <--- my code is in here
});
}),
3 Replies
Dan Harrin
Dan Harrin2y ago
Emit a Livewire event and listen to it on the relation manager
OzgurOzarpaci
OzgurOzarpaciOP2y ago
Must trigger refresh method in livewire am i right?
Dan Harrin
Dan Harrin2y ago
the relation manager is a livewire component that can refresh
Want results from more Discord servers?
Add your server