browser-extension icon indicating copy to clipboard operation
browser-extension copied to clipboard

[BX-1463][BX-1439] feat: improve nft pagination behavior

Open derHowie opened this issue 9 months ago • 8 comments

What changed (plus any additional context for devs)

Replaced our useNfts hook 3 new hooks. A hook for gallery nfts, one that fetches exclusively nft collection data, and a hook for fetching nfts from an individual collection. These changes were meant to allow for more conservative pagination behavior.

Each nft virtual list in now being managed by its own component. Nfts displayed during collection mode are only fetched if the collection is expanded. We added skeleton loaders within each collection section to accommodate this.

Nft sorting is no longer handled locally and is now done on the Simplehash side.

What to test

Check nft lists display and send nfts.

derHowie avatar May 09 '24 16:05 derHowie