Sounds like a dom diffing issue, but without the whole component, we can only make assumptions. Is this a nested component? Do you have wire:keys ? Have you included your @if inside a DIV element ?
Aug 30, 2024
7
Level 2
caught Snapshot missing on Livewire component with id:
When i click those buttons
{{-- Filter by Gender --}} @if (!$hideGenderFilter) š Filter by Gender
<button wire:click="setGender('female')"
class="flex-1 px-4 py-2 rounded-lg text-sm hover:bg-secondary hover:text-foreground focus:outline-none @if ($gender == 'female') bg-pink-500 text-white @else text-foreground @endif">š© Women</button>
<button wire:click="setGender('male')"
class="flex-1 px-4 py-2 rounded-lg text-sm hover:bg-secondary hover:text-foreground focus:outline-none @if ($gender == 'male') bg-blue-500 text-white @else text-foreground @endif">šØ Men</button>
</div>
</div>
@endif
i get this error "caught Snapshot missing on Livewire component with id:" and after that "Uncaught Component not found"
Please or to participate in this conversation.