Editing Spatie Tags

I am trying to edit spatie tags:

Forms\Components\TextInput::make('name') ->afterStateHydrated(function (Forms\Components\TextInput $component, \Spatie\Tags\Tag $tag, Forms\Components\Livewire $livewire) { $component->state($tag->getTranslation('name', $livewire->activeLocale)); })

This fails:

App\Filament\Resources\TagResource::App\Filament\Resources\{closure}(): Argument #3 ($livewire) must be of type Filament\Forms\Components\Livewire, App\Filament\Resources\TagResource\Pages\ManageTags given, called in /Users/xxx/xxx/xxx/xxx/vendor/filament/support/src/Concerns/EvaluatesClosures.php on line 35
Was this page helpful?