© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
Harvey

Spatie/translatable cannot mutate prop $activeLocale in relation manager

I followed the docs, on how to make a relation manager inherit the current resource's locale. But now when the RM loads it throws an error.

I added the following to my relation manager:
use Translatable;

#[Reactive]
public ?string $activeLocale = null;
use Translatable;

#[Reactive]
public ?string $activeLocale = null;


and that's it... the rest of the relation manager is just a table with 1 column in it.

EDIT:
Looks like the
mountTranslatable()
mountTranslatable()
from the trait is booting before
$activeLocale
$activeLocale
has a value, and it then tries to set to 'en', but Livewire does not like child components updating a property with the
#[Reactive]
#[Reactive]
trait.

Any thoughts? Or is this just a bug?
image.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Spatie Translatable relation manager locale
FilamentFFilament / ❓┊help
3y ago
Relation manager issue with spatie/translatable
FilamentFFilament / ❓┊help
2y ago
activeLocale error in ListResource using Filament Spatie Translatable
FilamentFFilament / ❓┊help
3y ago
Translatable Relation manager
FilamentFFilament / ❓┊help
3y ago