Defer table filters
I have fairly complex filters and when they change rapidly the state get's messy.
the problem is that each filter triggers a refresh individually, is it possible to set a defer for the whole filters section ?
3 Replies
i dont think we have an option for that at the moment but its a good idea!
internally you would just ensure that we only pass
->reactive()
to the filter form conditionally, and then add an Apply filters button to the bottom of the formI'm not sure I'm capable enough to make a PR anyway you prefer
$table->columns([...])->filters([...], deferred:true)
or
$table->columns([...])->filters([...])->deferredFilters()
probably
shouldDeferTableFilters(): bool
on the list page