Accessing $livewire in emptyStateDescription() method
Hi, is it possible to acces $livewire into the emptyStateDescription() method of a table ?
8 Replies
I have this error
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1172532453341143110/image.png)
Because you are calling $livewire then activeTab and activeTab is not designed on the $livewire element.
Well this is working so I thought I could use it also with emptyStateDescription but the $livewire element must be unavailable in this context 🫤
id you dd($livewire) ?
I have that 😅
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1172546218807795772/image.png)
Scroll down and it will show the error…. You know what DD is right?
try using
There was no error returned in the DD message ...
It worked, thx a lot 🙂