Wizard issue with missing $statePath

I have a livewire component wizard that seems to be hitting intermittent issues for a very few users, I'm unable to recreate the issue. We're running the site on a load balancer, so it might just be a server or two playing up.

I'm saving the form data to individual properties, rather than using $statePath, but occasionally the wizard seems to crash when moving to the next step

production.ERROR: Filament\Forms\Components\Wizard::Filament\Forms\Components{closure}(): Argument #2 ($statePath) must be of type string, null given,

Which seems to be related to:

$this->registerListeners([
            'wizard::nextStep' => [
                function (Wizard $component, string $statePath, int $currentStepIndex): void {


from Wizard.php

Any idea why it works 99% of the time, but occasionally falls over? We're on php 8.2

Thanks!
Was this page helpful?