You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've struggled with this for several days and am not getting past the issue. I have a filter that I execute that correctly updates the header to the table with the indicateUsing method. However, the records in the table don't update until I actually refresh the page. How can I make it so that when I submit the filter, the table records are re-queried based on my query modifications?
I've tried using things like filtersApplyAction, I've passed in $livewire as a component, as well as HasTable. Tried doing things with refreshTable as well as getTableRecords()->fresh() etc. None of it is working.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Package
Table builder
Package Version
v3.3.10
How can we help you?
I've struggled with this for several days and am not getting past the issue. I have a filter that I execute that correctly updates the header to the table with the indicateUsing method. However, the records in the table don't update until I actually refresh the page. How can I make it so that when I submit the filter, the table records are re-queried based on my query modifications?
"""
->filters([
DateRangeFilter::make('date_range')
->label('Date Range')
->displayFormat('MM/DD/YYYY')
->format('m/d/Y')
->useRangeLabels(true)
->modifyQueryUsing(function (Builder $query, ?Carbon $startDate, ?Carbon $endDate) {
if (empty($startDate) || empty($endDate)) {
return $query;
}
"""
I've tried using things like filtersApplyAction, I've passed in $livewire as a component, as well as HasTable. Tried doing things with refreshTable as well as getTableRecords()->fresh() etc. None of it is working.
Any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions