Snapshot missing on Livewire component - Header Action

Hey guys.

I made a view resource in my application where I have a view blade loaded into Section Component.

Section::make()->view('filament.user.resources.client-resource.widgets.client.header-session'...


Inside view, I'm using a custom livewire component to show tags:

@if ($client->tags->count() > 0)
    <div class="flex gap-3">
       @foreach ($client->tags as $tag)
           <livewire:badge-tag-action :tag="$tag" :model="$client"/>
       @endforeach
     </div>
@endif

Everything is working well at this point, but for some reason, When I execute my Header Action, returns livewire error, IF i remove this custom view, It works fine, what i'm doing wrong?

Action code:
Solution
Added :wire:key="'badge-tag-' . $tag->id" /> and it works.
Was this page helpful?