Minor Changes
-
#5388
901c3a1
Thanks @kien-ngo! - Add headless UI component: Account (Name, Image, Address, Balance) -
#5374
0e5d120
Thanks @joaquim-verges! - # Breaking changeWe are making the following changes to the NFT component to provide better performance and fine-grain control over their internal fetching logic.
Moreover, you no longer have to wrap React.Suspense around said components!Old
<NFT> <React.Suspense fallback={"Loading stuff..."}> <NFT.Media /> <NFT.Name /> <NFT.Description /> </React.Suspense> </NFT>
New
The new version comes with 2 new props:
loadingComponent
andfallbackComponent
.
Basically,loadingComponent
takes in a component and show it while the internal fetching is being done
fallbackComponent
takes in a component and show it once the data is failed to be resolved<NFTProvider contract={contract} tokenId={0n}> <NFTMedia loadingComponent={<span>Loading NFT Image</span>} fallbackComponent={<span>Failed to load NFT</span>} /> <NFTDescription loadingComponent={<span>Loading NFT Description</span>} fallbackComponent={<span>Failed to load NFT Description</span>} /> </NFT>
Patch Changes
-
#5463
f368793
Thanks @gregfromstl! - Fixes PayEmbed error state appearing on certain errors -
#5464
b5227c9
Thanks @gregfromstl! - Adds the ability to override transaction values in createNewPack