F
Filament6mo ago
Hro

history.replaceState error in safari when having many components with actions

So, when I have a lot of components that use actions, I get history.replaceState in safari (or its equivalent in chrome) SecurityError: Attempt to use history.replaceState() more than 100 times per 10 seconds I have looked around and could not really find a similar issue.
1 Reply
Hro
Hro6mo ago
Pinned down to
/**
* @var mixed
*/
#[Url(as: 'action')]
public $defaultAction = null;

/**
* @var mixed
*/
#[Url(as: 'actionArguments')]
public $defaultActionArguments = null;
/**
* @var mixed
*/
#[Url(as: 'action')]
public $defaultAction = null;

/**
* @var mixed
*/
#[Url(as: 'actionArguments')]
public $defaultActionArguments = null;
So it seems it tries to do this for every component having actions. Also, but unrelated, components with actions have quite a performance drawback. I have changed quite a bit to use another modal to overcome that.