Add support for paging in the useCollection hook
evert opened this issue · 1 comments
evert commented
To make this efficient, the Ketting State object really needs a synchronous follow()
and followAll()
.
The useCollection hook should return the following new properties:
- hasNextPage: boolean
- nextPage(): () => void
When a new page gets fetched, the new items should be appended to items
, not replace it.
evert commented
Will be released in 2.1.0