afterStateUpdated() not triggering on TextInput

afterStateUpdated method is not triggering on TextInput inside an repeater.

TextInput::make('item_count')
            ->label('Quantity')
            ->numeric()
            ->minValue(1)
            ->required()
            ->hidden(fn($record, string $operation) => $operation == 'edit' ? $record->product->trashed() : false)
            ->live()
            ->afterStateUpdated(function(?string $state) {
                       dd($state);
             }),
Was this page helpful?