Need action that open url and refresh table

I desperately need action that open url, update status, and refresh table together after status updated?
2 Replies
Tomato
TomatoOP6d ago
->url(fn (Client $record) => route('api.client.whatsapp', $record->id), shouldOpenInNewTab: true)
->dispatch('refreshTable'),
->url(fn (Client $record) => route('api.client.whatsapp', $record->id), shouldOpenInNewTab: true)
->dispatch('refreshTable'),
need url and dispatch work together
Tomato
TomatoOP6d ago
i used this
->url(fn (Client $record) => route('api.client.whatsapp', $record->id), shouldOpenInNewTab: true)
->extraAttributes([
'wire:click' => '$dispatch(`refreshTable`, JSON.parse(`{\u0022id\u0022:\u0022refreshTable\u0022}`))'
]),
->url(fn (Client $record) => route('api.client.whatsapp', $record->id), shouldOpenInNewTab: true)
->extraAttributes([
'wire:click' => '$dispatch(`refreshTable`, JSON.parse(`{\u0022id\u0022:\u0022refreshTable\u0022}`))'
]),
from this website https://github.com/filamentphp/filament/issues/15747 i dont know this is issue or not, but this is not good readable code, please make action with url and dispatch work together.
GitHub
Notification Action dispatch() doesn't work with url() · Issue #157...
Package filament/filament Package Version v3.2.141 Laravel Version v11.43.0 Livewire Version v3.5.20 PHP Version PHP 8.3.16 Problem description When adding an action Filament\Notifications\Actions...

Did you find this page helpful?