Filament Action on livewire page not mounting/throwing error
What I am trying to do:
I have a schedule page, for each timeslot the user can click on it and either create or edit a timeslot entry. I have the actions working for the month-view of the schedule.
I'm using the exact same Action objects for a week-view, but they're throwing a weird error. It seems like Livewire is losing the livewire components.
What I did:
- The wire:click is activating
- The action tries to mount (checked using dd)
- The action activates ->fillForm()
- Using {{ $this->actionName }} (gives same error)
- Most things which ChatGpt suggested: https://chatgpt.com/share/679a57a3-bff8-8005-8f1b-fd622bc90a8c
the error:
livewire.js?id=38dc8241:4502 Uncaught Snapshot missing on Livewire component with id: 1f0i9YIPD29PF0EE07vf
Code:
Solution:Jump to solution
Okay I solved it, ofcourse it had to be the stupidest thing ever. In the top livewire component there was a div that wasn't properly being closed 🥹
2 Replies
Anyone?
So I'm one step further, its apparently nothing do with basically everything I tried. But there's some confusion in some livewire componenets I'm calling earlier in the page, when I comment the first one out the Actions work again 🤔
Solution
Okay I solved it, ofcourse it had to be the stupidest thing ever. In the top livewire component there was a div that wasn't properly being closed 🥹