Cannot access $livewire in Action->hidden() closure
I would like to conditionally hide an action table depending if it's render on a page or a relation manager. I thought I could access the $livewire and make a decision there but I guess it's not possible. Any ideas ? π
5 Replies
Can you replicate this issue with a regular
Action
(not AttachAction
)?What if you use
$table
directly and donβt pass it to the Resource table?I tried with an edit action same thing π’
Same it doesn't work.
I think it is suppose to work since the $livewire is injected, I will post a github issue in the next few days.
Yeah, I did a quick test on my end and it worked for me on a Resource table. The only difference is you're on a Relation Manager but I feel like it shouldn't make a difference here.
Thanks for the investigation π