A connection requires using the usePagination hook. You can find an example in components/Comment/CommentList.tsx
I need to refactor a bit of the backend before you do this. While you wait, try to just fetch ALL challenges via the challenges query.
Currently there are no past challenges, but I will make a few for you tomorrow so you have some data. I will also make an filtered query of all available vote challenges for you. Give me tomorrow to write up an implementation.
We need to fetch a Connection of past challenges for the vote page.
https://images.zenhubusercontent.com/292475401/b9b2742b-7360-4925-82e5-5efdbcbd3825/2021_07_14_23_14_58.mp4
A connection requires using the
usePagination
hook. You can find an example incomponents/Comment/CommentList.tsx
I need to refactor a bit of the backend before you do this. While you wait, try to just fetch ALL challenges via the
challenges
query.Currently there are no past challenges, but I will make a few for you tomorrow so you have some data. I will also make an filtered query of all available vote challenges for you. Give me tomorrow to write up an implementation.