reactive-table icon indicating copy to clipboard operation
reactive-table copied to clipboard

[Feature Request] A set of initial filters for server side pagination

Open s7dhansh opened this issue 9 years ago • 1 comments

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?

s7dhansh avatar May 16 '16 06:05 s7dhansh

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.

aslagle avatar May 16 '16 12:05 aslagle