AmpersandJS / ampersand-paginated-subcollection

Filter an ampersand-collection by limit and offset
MIT License
4 stars 1 forks source link

Needs equivalent of subcollection.filteredLength #1

Closed wraithgar closed 7 years ago

wraithgar commented 9 years ago

When paginating it's important to know our parent's length.

wraithgar commented 9 years ago

We can expose it as parentLength but when subcollection is refactored to use this + filtered-collection it will need to maintain a reference to filteredLength in order to preserve backwards compatibility.

wraithgar commented 9 years ago

Alternatively it can be exposed as total since that's what it more accurately represents.