firestore-pagination-hook
Cumulative pagination for firestore collections
Install
yarn add firestore-pagination-hook
Example
import usePagination from "firestore-pagination-hook";import firebase from "firebase/app"; { const loading loadingError loadingMore loadingMoreError hasMore items loadMore } = ; return <div> loading && <div>Loading...</div> items hasMore && !loadingMore && <button =>Load more</button> </div> ;}