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:Jump to solution
make sure you have the HasActions interface and InteractsWithActions trait on the livewire components
6 Replies
Hard to debug anything without any code.
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.php404s
Solution
make sure you have the HasActions interface and InteractsWithActions trait on the livewire components
Then it works! Thanks. Did i miss this in the v4 Upgrade guide?
I think its missing
could probably try and add it to the upgrade script tbh