rappasoft / laravel-livewire-tables

A dynamic table component for Laravel Livewire
https://rappasoft.com/docs/laravel-livewire-tables/v2/introduction
MIT License
1.75k stars 330 forks source link

[Bug]: Livewire property `tableName` cannot be found #1920

Closed danie-ramdhani closed 2 weeks ago

danie-ramdhani commented 3 weeks ago

What happened?

When upgrading to latest version (3.4.17) there's console bug Livewire property [tableName] cannot be found from this PR and i think from this line.

defining property to table component like public string $tableName = 'some-table'; fix the bug. but is it really required to define $tableName from version 3.4.17?

Here's the console error looks like:

image

How to reproduce the bug

No response

Package Version

3.4.17

PHP Version

None

Laravel Version

No response

Alpine Version

No response

Theme

None

Notes

No response

Error Message

No response

qwasyx0 commented 3 weeks ago

yes it is required

lrljoe commented 2 weeks ago

It shouldn't be required as there's a method used to retrieve the default "table" if it's not defined, I'll take a look, it's probably just a mistaken entangle rather than a get, or the default property is mistyped as protected/private

lrljoe commented 2 weeks ago

This is in development branch, and will be in the next release.

lrljoe commented 2 weeks ago

Should be fixed now

[v3.4.20] - 2024-09-10

Bug Fixes