element disappearing, wire:ignore seems to be not consisently applied

I have a livewire component in a page and It was disappearing when I'd edit the item, so I added wire:ignore to a containing div, which fixed that problem. Now the problem is that when I create a new item, it's not showing up when the items are refreshed after the create method is run. But if I remove wire:ignore, it will show up when a new item is created. It's a bit of a catch 22, as I don't think I can conditionally apply wire:ignore to only happen on edit and not create. Has anyone run into this?
<div class="h-8" wire:ignore>
<livewire:month-end.edit-month-end-task id="{{ $itemValue->id }}" />
</div>
<div class="h-8" wire:ignore>
<livewire:month-end.edit-month-end-task id="{{ $itemValue->id }}" />
</div>
1 Reply
Jon Mason
Jon MasonOP14mo ago
i'm guessing this is a wire:key issue. going to try that..
Want results from more Discord servers?
Add your server