You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The modalHidden(), modalHeading() and modalDescription() closures on actions are evaluated multiple times.
This causes all queries / notifications etc. used in these closures to be executed multiple times.
Expected behavior
These methods should only be evaluated once.
Steps to reproduce
Download reproduction repo, go to "Products" and click the "Modal test" header action. You'll see the notification being sent in each closure firing multiple times.
Some of the calls can now be avoided if you inform Filament that the action explicitly has a modal (#11746).
The rest of the calls are due to a bug in Laravel's anonymous Blade component tag implementation. I am working on a Laravel PR, but fixing this in the Filament core would make the code messier, so I want to avoid that.
Package
filament/filament
Package Version
v3.2.34
Laravel Version
v10.3.3
Livewire Version
v3.4.4
PHP Version
8.3
Problem description
The
modalHidden()
,modalHeading()
andmodalDescription()
closures on actions are evaluated multiple times.This causes all queries / notifications etc. used in these closures to be executed multiple times.
Expected behavior
These methods should only be evaluated once.
Steps to reproduce
Download reproduction repo, go to "Products" and click the "Modal test" header action. You'll see the notification being sent in each closure firing multiple times.
Reproduction repository
https://github.com/binaryfire/filament-reproduction-repo
Relevant log output
No response
The text was updated successfully, but these errors were encountered: