© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Crylar

Table action button is not getting updated after action executed

In v2 the color, label, disabled used to update after the action finished but this is different in v3. How can I bring the old behaviour and re-render the table?

Actions\Action::make('activate')
                ->button()
                ->disabled(fn (Arena $record) => $record->id == $activeVenueId)
                ->label(fn (Arena $record) => $record->id == $activeVenueId ? __('filament/venues.active') : __('filament/venues.activate'))
                ->color(fn (Arena $record) => $record->id == $activeVenueId ? 'gray' : 'success')
                ->action(function (Arena $record) {
                    Auth::user()->switchArena($record);

                    Notification::make()
                        ->title(new HtmlString('<span class="font-bold underline">'. $record->title .'</span> is active now!'))
                        ->success()
                        ->send();
                })
Actions\Action::make('activate')
                ->button()
                ->disabled(fn (Arena $record) => $record->id == $activeVenueId)
                ->label(fn (Arena $record) => $record->id == $activeVenueId ? __('filament/venues.active') : __('filament/venues.activate'))
                ->color(fn (Arena $record) => $record->id == $activeVenueId ? 'gray' : 'success')
                ->action(function (Arena $record) {
                    Auth::user()->switchArena($record);

                    Notification::make()
                        ->title(new HtmlString('<span class="font-bold underline">'. $record->title .'</span> is active now!'))
                        ->success()
                        ->send();
                })
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Table data is not refreshed after clicking custom table action
FilamentFFilament / ❓┊help
13mo ago
Table update after action
FilamentFFilament / ❓┊help
2y ago
recordAction not executed, instead toolbarAction is executed
FilamentFFilament / ❓┊help
6mo ago
Import is not executed
FilamentFFilament / ❓┊help
2y ago