Issue with Table Summarizer visibility not updating when filters change

I'm trying to show/hide a Sum summarizer based on specific filters being active. I can successfully detect the filters using $table->getLivewire()->tableFilters['remise']['value'], but there seems to be a timing issue. The summarizer only updates its visibility when the page is fully refreshed. When applying filters through the UI, even though the table data updates via Livewire, the summarizer's visibility state doesn't update until a full page refresh occurs. Here's my current code: Tables\Columns\TextColumn::make('montant') ->label('Montant') ->summarize( Tables\Columns\Summarizers\Sum::make() ->visible(fn(Table $table) => !empty($table->getLivewire()->tableFilters['remise']['value'] ?? null) || !empty($table->getLivewire()->tableFilters['remiseancv']['value'] ?? null) ) ) The filter detection works correctly (I can see the proper values in tableFilters), but the visibility state only updates after a full page refresh. Is there a way to force the summarizer to re-evaluate its visibility when filters are applied without requiring a page refresh?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server