Adds a new HOC (withPagedArchive) to handle manual pagination, where the page is passed via the page property (customisable via an options param).
Adds getPagedArchive into the handler to facilitate retrieving specific pages. (fetchMore is continuing to be used for loading them in.)
To support this, the state now contains a archivesByPage data store. In Repress Next (#36) we should combine archives, archivePages, and archivesByPage into a single item in the state instead, as archives is now a redundant store of the combined subobjects in archivesByPage.
Fixes #17.
Adds a new HOC (
withPagedArchive
) to handle manual pagination, where the page is passed via thepage
property (customisable via anoptions
param).Adds
getPagedArchive
into the handler to facilitate retrieving specific pages. (fetchMore
is continuing to be used for loading them in.)To support this, the state now contains a
archivesByPage
data store. In Repress Next (#36) we should combinearchives
,archivePages
, andarchivesByPage
into a single item in the state instead, asarchives
is now a redundant store of the combined subobjects inarchivesByPage
.