Using Tab component with Table Builder
I am using the Blade Tab component with Table Builder in my project:
The issue is when I click the tab, it will run
The issue the table is not re-render when I click the tab in the 1st click, it only re-re-render when I click 2nd click (feel like defer effect).
For example: If I click tab A, it doesn't show content of tab A in the table, but when I click tab B, then it show the content of tab A. And if I click tab C, it shows content of tab B.
The issue is when I click the tab, it will run
$set('type', '{{ $key }}') to set the type, and I will load type in my $table->relationship() method like this:The issue the table is not re-render when I click the tab in the 1st click, it only re-re-render when I click 2nd click (feel like defer effect).
For example: If I click tab A, it doesn't show content of tab A in the table, but when I click tab B, then it show the content of tab A. And if I click tab C, it shows content of tab B.