Livewire encountered corrupt data - Notifications

I've got an unexplained issue. When I try and put markdown in a Notification Body, as per docs, it throws a livewire issue: Livewire encountered corrupt data when trying to hydrate a component. Ensure that the [name, id, data] of the Livewire component wasn't tampered with between requests. I've stripped everything out in this example using just wom view page header actions:
Action::make('Test Not Work')
->label('Test Not Work')
->action(fn () => Notification::make()
->body(Str::markdown('Changes to the **post** have been saved.'))
->send()),

Action::make('Test Work')
->label('Test Work')
->action(fn () => Notification::make()
->body('Does work')
->send()),
Action::make('Test Not Work')
->label('Test Not Work')
->action(fn () => Notification::make()
->body(Str::markdown('Changes to the **post** have been saved.'))
->send()),

Action::make('Test Work')
->label('Test Work')
->action(fn () => Notification::make()
->body('Does work')
->send()),
The one without any markdown works fine, the other throws the :Livewire  \  Mechanisms  \  HandleComponents  \  CorruptComponentPayloadException error. Any ideas ?
3 Replies
Matthew
MatthewOP3mo ago
Anyone help with this one ? Any of the filament core team able to comment on this ??.....I've provided the code, everything needed. I believe I'm directly lifting the code off the documentation and not trying to do anything obscure. Get the same result trying to use HtmlString btw.
ChesterS
ChesterS3mo ago
I have copied the exact same example you have and it works as expected so it's probably something else you're doing. What version of livewire/filament etc are you using? (php artisan about ) Also, can you share the rest of the resource/component?
Matthew
MatthewOP3mo ago
Thanks for responding. On version 3.5.6 and 3.2.112, so nothing significantly out of date. At least I know if it is working for you, then there is something we have got going on that is causing the issue. I'll do some investigation.
Want results from more Discord servers?
Add your server