© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
4 replies
Mitsunari

Intermittent RichEditor error inside Repeater: Argument #2 ($rawState) must be of type ?array, strin

Hi everyone 👋,

I’m running into an odd issue with RichEditor inside a Repeater (Filament v4). My description column is of type TEXT.

Most of the time things work fine, but I noticed a pattern:
• The first save works without any problem.
• On the second save, if I try to save again without making any changes to the RichEditor, I get this error:

Filament\Forms\Components\RichEditor::Filament\Forms\Components{closure}():
Argument #2 ($rawState) must be of type ?array, string given,
called in /vendor/filament/support/src/Concerns/EvaluatesClosures.php on line 36

So it seems to only happen on repeated saves where the editor’s content hasn’t changed. It looks like it might be related to how the Repeater re-hydrates the RichEditor state between submissions.

Has anyone else run into this behavior, or is there a known workaround/best practice?

Thanks a lot 🙏
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

Argument #2 ($label) must be of type string, array given
FilamentFFilament / ❓┊help
3y ago
Argument #1 ($values) must be of type array, string given
FilamentFFilament / ❓┊help
3y ago
$rawState Error with RichEditor
FilamentFFilament / ❓┊help
4mo ago
Form Select Relationship error - array_diff(): Argument #2 must be of type array, int given
FilamentFFilament / ❓┊help
2y ago