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
$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.5 Replies
Hmm, did you mount and fill on boot of the component first?
If it's not been filled then that would likely explain that scenario
@toeknee I am not sure what you mean, but I do have a mount method in that component and no boot method
In mount put:
$this->form->fill();
I just did, but it doesn't work
Then I am unsure, sorry