reactive-table
reactive-table copied to clipboard
[Feature Request] A set of initial filters for server side pagination
When using server side pagination, if I try to set a couple of filters initially as default, it increases the load time by at least twice. I guess that each time the filter is set, the previous subscription is stopped and new one is spawned.
Can we have an option, say "initialFilters", in which we get a field: value/query object and set that in one go?
Alternatively, can we have an option where we can set multiple filters in one go?
I'd suggest setting the filters before the table initially gets them. You should be able to put the initialization in a Template.onCreated. They won't be used until the table template actually renders.