curaOS / source

Start a solid foundation of tools for creators+builders.
https://cura.run
15 stars 13 forks source link

Move `useNFTExplore` to `@cura/hooks` #206

Open sekaiking opened 2 years ago

sekaiking commented 2 years ago

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.