I have to submit the form twice to update the table in a custom page with a table and a from
So, I'm building a very complicated wizard that I need to use Filament Forms and Table separately in. To start with, I want the user to write in a text field in a form, submit, then the table shows the results. I did something similar to this, but for some reason, I have to submit the form twice for the table to update.
1 Reply
Here is the custom page code:
Here is the livewire blade:
So, I replaced
$this->getTableQuery()
with $this->dispatch('updateClientsTable');
in findClient()
and it worked perfectly.
Ah, I also added protected $listeners = ['updateClientsTable' => '$refresh'];
in the class.