Looping through multiple Livewire components containing Filament Action crashes Firefox/Safari
Context
I'm migrating my action modals from Wire Elements Pro (Modal) to Filament Actions to achieve a more consistent UI and reduce code maintenance.
On a search pages, I'm implementing a feature where users can perform actions for each card by opening a dropdown that lazy loads options including an Action.
Problem
I've discovered that loading a certain number of Livewire components containing Filament action buttons causes the page to crash on both Firefox and Safari. The error messages differ between browsers (see bellow). Chrome appears unaffected by this issue.
Removing
InteractsWithActions solves the problem (but the action is not usable anymore).Minimum example
Error messages
Firefox (after reloading within 10s)
Too many calls to Location or History APIs within a short timeframe.Uncaught DOMException: The operation is insecure.
SafariSecurityError: Attempt to use history.replaceState() more than 100 times per 10 seconds
The Firefox issue seems to be related to Livewire itself and has been discussed here, but no solution is currently available. I've created a simple example repository to reproduce the issue. The code is available on GitHub, and you can access the demo on the
/test2 route.Question
---

Solution
@Grégoire I've found a solution that works even when leaving the InteractsWithActions.
This is a temporary solution, allowing you to space out requests if they're too close to each other.
Just add this JS script to your page:
This is a temporary solution, allowing you to space out requests if they're too close to each other.
Just add this JS script to your page: