Closed 0xJohnnyboy closed 2 years ago
3.0.0 and prior
This would be interesting to split these 3 types of params, as oftentimes you want to update pageIndex, but not the filters, nor the sorting.
const qb = new SpdrQueryBuilder() qb.params.{whatever filter}() qb.sort.{whatever sort}() qb.pagination.{whatever pagination}()
With clearing methods like
qb.sort.clear() qb.params.search('username', ['johnny']) qb.params.remove('username')
This way we would be able to update the pagination without the rest and vice versa
Closing this issue, feature available in v3.1.0 See #10 changelog.
Version
3.0.0 and prior
Issue
This would be interesting to split these 3 types of params, as oftentimes you want to update pageIndex, but not the filters, nor the sorting.
Suggestion
With clearing methods like
This way we would be able to update the pagination without the rest and vice versa