flexyford / impagination

A lazy data layer for your paged records
102 stars 7 forks source link

loadHorizon and unloadHorizon by record count #13

Closed flexyford closed 8 years ago

flexyford commented 8 years ago

The loadHorizon and unloadHorizon should determine the number of records to load, not the number of pages to load.

loadHorizon: If some records in a page lie inside the loadHorizon, then load that page.

unloadHorizon: If all the records in a page lie outside the unloadHorizon, then unload that page.

cowboyd commented 8 years ago

unloadHorizon: If the unload Horizon extends into a page, unload the page that follows.

or that preceeds? Perhaps a better statement is "if all the records in a page lie outside the unloadHorizon, then unload that page.

flexyford commented 8 years ago

Edited description to match your comments

flexyford commented 8 years ago

Fixed on #14