How to make table update after a livewire variable update outside of filament

I have a filament table inside a livewire component, with a search input and a button with wire:click. After click, the parameter from the search should be applied to the query that builds the table. That query makes an API request and returns the data to the table. Everything is working fine apart from the update of the table after the insertion of a text parameter. One way I found to make the update of the table work is to use ->poll() inside $table, but it keep polling data from the API every 10s. I also tried to use $this->resetTable() inside the function that wire::click calls, but it doesn't updates the table with data. Before moving to filament 3.0 I used this logic in another table and it was working. Is there a better approach to make the table API data to be based on the search field? What can I do to make it work?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server