$livewire->getState() Not Working

Someone suggested that I use this to obtain the full state of the page. But any time I try to use it in a form I get an error. Is there something special I need to do to access the full state?
5 Replies
bwurtz999
bwurtz999OP2y ago
By this I mean $livewire->getState()
Dan Harrin
Dan Harrin2y ago
maybe $livewire->form->getState() where are you calling it from
bwurtz999
bwurtz999OP2y ago
I just tried that It's not returning an error but it's always empty I'm calling it from within the protected function getTableHeaderActions for a relation manager Here is a link to my earlier conversation: https://discord.com/channels/883083792112300104/1096177373726118040/1096177373726118040
Dan Harrin
Dan Harrin2y ago
try $get('../../selections')
bwurtz999
bwurtz999OP2y ago
Wow I swear I tried that yesterday but I must've been doing something wrong Works perfectly Thank you!
Want results from more Discord servers?
Add your server