Conditional filter rendering by $activeTab

Hello!
I'm using the active tab to decide visibility like ❓┊helpHow to Hide/Show Bulk Action based on active Tab? and ❓┊helphidden filter icon on other tabs. The difference, that I'm using it for a filter, not action, and only a single filter, not all the filters.

Tables\Filters\SelectFilter::make('status')
  ->visible(fn ($livewire): bool => ! $livewire->activeTab)


My problem is, that it seems like the $livewire->activeTab changes after the page is reloaded.
I use "" for the All page, and if I load the page, the status selector is visible, like it should be. If I change to one of the tabs, the page reloads, but the selector is still visible. After the second change it disappears.
If I go back to the All, it's not visible, if I change again, it's visible, etc....

Do you guys have any idea what could be the problem, and how can I solve it?
Was this page helpful?