Notification Action - V4
I have a notification in my custom action class as a guide from this document.
I encounter an error
Unable to call component method. Public method [mountAction] not found on component
not sure if this is known issue in v4 beta-10.
here is my code snippet:
11 Replies
How are you using the DeleteRecordAction on your page?
I'm using it in my table as a recordActions and plan to use it on the View Page.
is your table in a resource or on a custom page
in a resource
please open a bug report with a reproduction repository
bug reported. Thanks.
GitHub
filamentphp/filament
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
ah i see, we dont support notification actions
Solution
only URLs and dispatches, not function calls
sorry i wasnt reading the code snippet properly originally.
its nothing to do with it being a custom action class though, this never worked in v3 either
I see, will it be a feature in the future?
i dont know a way in which it would be possible, no
for a notification to be sent, its entire configuration needs to be serialised to JSON
but you cant safely serialise a function like that really