Two tables on page with asynchronous refresh
I need to display two tables on the same page, each with a different query. When performing an action that moves a model from one table to the other, I want the tables to update accordingly. I'm considering using two table widgets, but I'm not sure if refreshing will work correctly.
From my experience, when I perform an action on a model in table1, it disappears from there as expected—but it only shows up in table2 after a full page reload.
Do you have any tips on how to handle this properly?
1 Reply
I've used table widgets to have two tables, and from memory the refresh works.
If not, you can just use
->dispatch
to send a livewire event to refresh.