Héctor Q. Torres
Target class [livewire] does not exist.
I discovered the problem. Actually, I had started the project using the PHPUnit package (since I was used to using it for API tests). However, after creating a new project from scratch and choosing Pest, I noticed that a file is created:
/tests/Pest.php
:
This way, everything worked correctly. Since my scenario involves multi-tenancy, I also needed to add the following setup in TestCase
:
Thanks for the help again!21 replies
How to Disable Table Polling in a Header Action on a Resource List Page?
My reason for using
But I am indeed using an
I managed to make it work in a very improvised way.
The issue is that I have a header action that opens a form, which in turn has a creation option.
Due to polling, I was having problems when trying to submit the open modals because the actions were being disabled between polling intervals.
Another issue was that when filling in some file upload fields, the files would disappear if a polling event occurred while they were still being uploaded.
I searched in various places before coming here and checked this article:
Understanding Laravel Filament V3: Resolving Disabled Action Components on ViewResource with Polling,
but I couldn't find a way to stop the polling when opening the modal and resume it when closing (whether the action was submitted or not).
The way I managed to solve it was by combining your suggestion with the following code:
It was improvised, but I managed to enable and disable polling only when the first modal in the chain is opened or closed (regardless of whether the action was submitted or not). If you have a better suggestion, I'd love to hear it!
mountUsing
was to stop the polling after the action was mounted.But I am indeed using an
->action()
.I managed to make it work in a very improvised way.
The issue is that I have a header action that opens a form, which in turn has a creation option.
Due to polling, I was having problems when trying to submit the open modals because the actions were being disabled between polling intervals.
Another issue was that when filling in some file upload fields, the files would disappear if a polling event occurred while they were still being uploaded.
I searched in various places before coming here and checked this article:
Understanding Laravel Filament V3: Resolving Disabled Action Components on ViewResource with Polling,
but I couldn't find a way to stop the polling when opening the modal and resume it when closing (whether the action was submitted or not).
The way I managed to solve it was by combining your suggestion with the following code:
It was improvised, but I managed to enable and disable polling only when the first modal in the chain is opened or closed (regardless of whether the action was submitted or not). If you have a better suggestion, I'd love to hear it!
7 replies