FilamentF
Filament15mo ago
Matthew

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()),


The one without any markdown works fine, the other throws the :Livewire
\ 
Mechanisms
\ 
HandleComponents
\ 
CorruptComponentPayloadException

error.

Any ideas ?
Was this page helpful?