Uncaught Snapshot missing on Livewire component with id: 5k8cfyjIWCqpkMXB2LHv
How do you fix this? I have two tables in my infolist
My problem is that if there is two table livewire component the modal doesnt show up and with the error
Uncaught Snapshot missing on Livewire component with id: 5k8cfyjIWCqpkMXB2LHv
. If I remove one table livewire component it works. Can someone please help. Thank youu!Solution:Jump to solution
I have make an alternative but it works for now:
```php
<?php
namespace App\Filament\Resources\SecunaPentestResource\Actions;...
16 Replies
You might need to give the livewire components a wire:key. But that seems odd to me.
Both my table components have the same format like this but they are separated file. Is this correct?
I put different wire:key in each div but the error also persist
Yea, it weird that live wire is losing the reference.
Wait should these both be in the same tab?
It’s something to do with the tabs. I think. And not your components.
At least not directly.
yes they are in the same am I doing wrong?
the purpose tab is where the modal
Edit Purpose
and it's not showing up
thats where the error shows
but if I remove one table the Edit Purpose
modal shows upNo, that should be ok.
What is the code in the purpose tab?
It's a bit long but I shortened but yeah this is what I do base on the docs:
Hmm, I’m not seeing anything obviously out of the norm.
If you have a repo you can share so I could maybe get a more complete view of everything I might be able to help more. But based on what you’ve shared I’m kinda stumped.
Solution
I have make an alternative but it works for now:
In my blade component:
And in my infolist instead of
Infolists\Components\Actions
I make Infolists\Components\Livewire::make(EditPurposeAction::class),
If it works it works. Glad you figured it out. 🙂
Thank you for the help btw👌
Hello @awcodes just to ask a question here it's not related to the issue but I thought I would ask here. How can I rerender my infolist after successfull action in my
EditPurposeAction::class
. Before it actually rerender my component inside the ScopeReview
where the infolist is found. Now the thing is my EditPurposeAction
is in another class and I don't know how can I rerender my infolist after successHey @jaocero ,
How were you able to solve this exactly?
I'm following the same steps as you here, but my modal is not opening at all now
@Azorky I solved it by giving the components a key
oh wow that actually worked. bcs i swear i tried it before..
Thank you!