kodadot / nft-gallery

Generative Art Marketplace
https://koda.art
MIT License
627 stars 359 forks source link

move `holderOfCollection` into a composable #9635

Closed daiagi closed 5 months ago

daiagi commented 6 months ago

currently holderOfCollection is being calcualted in holderOfGenerative and drilled down as a prop

what i would like to see

  1. move it to a composable
  2. fetch only once
  3. composable should watch for relevant changes and update returned refs
  4. all the following components should use the composable instead of prop

image

useDrop and useDropStatus in https://github.com/kodadot/nft-gallery/tree/drops-refactor can serve as an inspiration

kodabot commented 5 months ago

ASSIGNED - @daiagi 🔒 LOCKED -> Tuesday, March 12th 2024, 19:56:51 UTC -> 36 hours