Skip to content

data is not of type NFT[] when using useUnclaimedNFTs #2110

@mostafa-rio

Description

@mostafa-rio

Reproducing this bug is simple. Create an NFT Drop Contract on Thirdweb dashboard and try to fetch the unclaimed NFTs using useUnclaimedNFTs():
const { data } = useUnclaimedNFTs(contract)

if you try to log the data you will notice that the type is different:

Screenshot 2023-12-29 at 13 48 39

Metadata

Metadata

Assignees

Labels

BugSomething isn't working as intended in a provided reproduction.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions