Replies: 2 comments
-
Have you got the components on the page contained in their own elements? And have you set wire:key on those elements? When using a modal, it's often easiest to put the modal in it's own component, do the updates to the model within that component and then issue a refresh to the datatable so that it updates with the new data. Rather than using a normal html modal to access the parent component and refreshing the whole page. |
Beta Was this translation helpful? Give feedback.
-
Couple of extra points. I'm not seeing where you're using the following, so you can possibly remove them. use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\ValidationException; It's not great practice to keep extending a class unless there's a real requirement to do so, can I ask what you're doing in your LivewireTableComponent class / can you post the code, as that may also be causing the issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I encounter this error when livewire updates after model creation
the content of the
CategoryTable
iswhat happens exactly is when I refresh the page it works successfully and table renders successfully. I have the creation process in the same page as a modal so when I create a new category the response returns from the controller as it's created successfully. then livewire tries to update itself and shows that error displayed above.
Beta Was this translation helpful? Give feedback.
All reactions