© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•9mo ago•
2 replies
alyatek

ActionGroup Action caching custom view

What I am trying to do: I am trying to open a custom view in an Action Modal inside an Action Group

What I did: I simply followed this example https://filamentphp.com/docs/3.x/actions/modals#passing-data-to-the-custom-modal-content.

My issue/the error: After I open one modal, the following modals that I open, have the same content as the first one, might be some caching mechanism but I can't figure out why it is doing that.
The big difference is, if I put the action outside the action group, it will properly open the content without "caching" it in the following openings.

Code:
ActionGroup::make([
  Action::make('payment_history')
    ->action(fn (Payment $record) => $record->advance())
    ->modalContent(fn (Payment $record): View => view(
        'livewire.payments.modals.history',
        ['payment' => $record],
    ))
])
ActionGroup::make([
  Action::make('payment_history')
    ->action(fn (Payment $record) => $record->advance())
    ->modalContent(fn (Payment $record): View => view(
        'livewire.payments.modals.history',
        ['payment' => $record],
    ))
])
Modals - Actions - Filament
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

Custom Modal View for ViewAction
FilamentFFilament / ❓┊help
3y ago
Action inside Resource ViewAction blade view
FilamentFFilament / ❓┊help
3y ago
Action not working in custom view
FilamentFFilament / ❓┊help
3y ago
How to close an ActionGroup dropdown with a custom action function
FilamentFFilament / ❓┊help
3y ago