F
Filament2mo ago
John

Spatie Translatable + #[Reactive] RelationManager + Lazy loading bug?

Translatable works fine, also with "Inheriting the relation manager's active locale from the resource page" per documentation: https://filamentphp.com/plugins/filament-spatie-translatable#inheriting-the-relation-managers-active-locale-from-the-resource-page But when the relation manager is lazy loaded, and not loaded before switching locale, I get a Typed property Filament\Resources\RelationManagers\RelationManager::$table must not be accessed before initialization I can disable lazy loading for now, but it would be nice if this can be solved or worked around.
2 Replies
Lara Zeus
Lara Zeus2mo ago
feel free to open an issue on my repo so I remember it 🙂 and I'll take a look into it https://github.com/lara-zeus/translatable
John
JohnOP2mo ago
I allready added an issue here: https://github.com/filamentphp/filament/issues/15301, including reproduction repo
GitHub
Issues · filamentphp/filament
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - Issues · filamentphp/filament

Did you find this page helpful?