Open dfrl-dev opened 1 day ago
Have you tried this ? But , for expansion instead of actions.
https://github.com/robsontenorio/mary/issues/663#issuecomment-2414837626
Something like this?
@scope('expansion', $localizationItem)
<livewire:localization-form-item.expansion :localizationItem="$localizationItem"
wire:key="'loc-item-' . {{$localizationItem->string_id}}"
/>
@endscope
That throws an error that it can't find the component localization-form-item.expansion. I think I'm misunderstanding something with that solution, though. Forgive me, I'm relatively new to this stack.
Experimenting again with all the solutions in the closed issues led nowhere, unfortunately. The only functional solution so far is to remove the wire-key from the expansion row. I've noticed no negative consequences yet, but I'm open to other suggestions.
FWIW it's worth the child component has no wire:keys anywhere, either. There must be a quirk (or intentional implementation) where the nested keys don't work?
maryUI version
1.35
daisyUI version
4.12.10
Livewire version
3.5
What browsers are affected?
Firefox, Chrome
What happened?
When using a table flagged expandable, reference to custom components in the expansion slot are lost when an update call is fired. The lost components are in the expansion scope below.
I get an error that has been reported here before, the snapshot reference errors, but haven't found any of the proposed solutions work.
I've tried both the wire:key and :key approaches to keying the livewire component without success.
That said, I did manage to get it working by removing the wire key from the MaryUI Table.php expansion slot here:
I'm concerned that might have other consequences down the road. Any suggestions?