deferLoading

Is there any simple way to actually deferLoading on the table data until filter is applied?
Solution
You could modify the table query until a filter is selected:

Something like this (you need to figure out check_if_empty

->modifyQueryUsing(fn ($query, $livewire) => $query->when(
  check_if_empty($livewire->tableFilters), 
  fn ($query) => $query->whereRaw('1 = 0')
))
Was this page helpful?