Calling refreshDatatable with livewire component causes duplicate rows / "Cannot read properties of null (reading 'fingerprint')" #1057
Unanswered
idealerror
asked this question in
Q&A
Replies: 1 comment
-
Better to use the shiny new Component Column type : ComponentColumn::make('E-mail', 'email')
->component('email')
->attributes(fn ($value, $row, Column $column) => [
'type' => Str::endsWith($value, 'example.org') ? 'success' : 'danger',
'dismissible' => true,
]), |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a DataTable that has an "Actions" Column that calls a view which calls a Livewire component. When I call refreshDatatable, it essentially duplicates the data in the table instead of removing it. Is this caused by calling a livewire component within a view?
Is there a best practice for this? I'd like to delete a row and refresh the table so the row is removed, but could not find a good way to do this.
Everything works, except when calling
delete()
in the Livewire component, it refreshes the table and duplicates data. The delete works though. In the console I see this error:Here's an overview of how this is implemented:
<livewire:table-actions :uuid="$request" />
Beta Was this translation helpful? Give feedback.
All reactions