Refresh table on tab change

Hi, is there a way to hook on the tab change event to reset the table? I have a table where columns come dynamically based on certain parameters. These parameters might be different per tab, but my table columns aren't updating. I need the table to refresh itself after each tab change.
Solution:
Just added this method on my ListResource page: ```php public function updatedActiveTab(): void {...
Jump to solution
2 Replies
Solution
Watermelonnable
Just added this method on my ListResource page:
public function updatedActiveTab(): void
{
$this->resetTable();
}
public function updatedActiveTab(): void
{
$this->resetTable();
}
apparently it solves my Issue, i'll report back in a couple minutes
Watermelonnable
WatermelonnableOP4w ago
aight this works but doesn't solve my problem. It works for hooking on the event tho. I guess that's it for this thread

Did you find this page helpful?