source icon indicating copy to clipboard operation
source copied to clipboard

Move `useNFTExplore` to `@cura/hooks`

Open sekaiking opened this issue 4 years ago • 0 comments

The goal of useNFTExplore is to fetch multiple NFTs at one time and have a pagination system. It is useful for cura and other projects too. And we should remove it from frontend and add it to @cura/hooks .

https://github.com/curaOS/source/blob/fa01318d0e2a8f7c966d276fb2afe20aa1171b43/examples/frontend/pages/share/explore/index.tsx#L58

Also, cleaning it and improving it to make sure it works intuitively and in different setups.

I'm not sure if this is doable, but it would be better if useNFTExplore don't require the user to be logged. Because it only uses view methods and shouldn't need any gas to work. We need to test that too and the limits.

sekaiking avatar Jan 03 '22 08:01 sekaiking