v4: using only Table Builder - Property [$mountedActions] not found on component

Using the Table Package on a Livewire Page updated from v3 to v4 fails loading with: Property [$mountedActions] not found on component: [xxx] Deleting Line 50 on Concerns/InteractsWithTable.php fixes this issue, but Actions on Tables did not work. $this->cacheMountedActions($this->mountedActions); Is there something different in the way the Table Builder is to be used outside the Panel v4?
Solution:
make sure you have the HasActions interface and InteractsWithActions trait on the livewire components
Jump to solution
6 Replies
Dennis Koch
Dennis Koch3mo ago
Hard to debug anything without any code.
conradh
conradhOP3mo ago
You're absolutely right, i created a repo with a fresh Laravel install to reproduce the error: https://github.com/chellmann/ReproducemountedActionsError Route /test throws: Property [$mountedActions] not found on component: [tabletest] Here is the Controller: https://github.com/chellmann/ReproducemountedActionsError/blob/main/app/Livewire/Tabletest.php
Dan Harrin
Dan Harrin3mo ago
404s
Solution
Dan Harrin
Dan Harrin3mo ago
make sure you have the HasActions interface and InteractsWithActions trait on the livewire components
conradh
conradhOP3mo ago
Then it works! Thanks. Did i miss this in the v4 Upgrade guide?
Dan Harrin
Dan Harrin3mo ago
I think its missing could probably try and add it to the upgrade script tbh

Did you find this page helpful?