Skip to content

Commit 0be6379

Browse files
Version Packages
1 parent 901c3a1 commit 0be6379

File tree

6 files changed

+49
-55
lines changed

6 files changed

+49
-55
lines changed

.changeset/metal-cows-hear.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/plenty-dragons-carry.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/tall-pots-live.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

.changeset/tame-walls-live.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/thirdweb/CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,53 @@
11
# thirdweb
22

3+
## 5.70.0
4+
5+
### Minor Changes
6+
7+
- [#5388](https://github.com/thirdweb-dev/js/pull/5388) [`901c3a1`](https://github.com/thirdweb-dev/js/commit/901c3a102b81d52297b25a72600f4a3a22dabc14) Thanks [@kien-ngo](https://github.com/kien-ngo)! - Add headless UI component: Account (Name, Image, Address, Balance)
8+
9+
- [#5374](https://github.com/thirdweb-dev/js/pull/5374) [`0e5d120`](https://github.com/thirdweb-dev/js/commit/0e5d120909c19398b8ce3cc73d11a5fb2fd85782) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - # Breaking change
10+
11+
We are making the following changes to the NFT component to provide better performance and fine-grain control over their internal fetching logic.
12+
Moreover, you no longer have to wrap React.Suspense around said components!
13+
14+
### Old
15+
16+
```tsx
17+
<NFT>
18+
<React.Suspense fallback={"Loading stuff..."}>
19+
<NFT.Media />
20+
<NFT.Name />
21+
<NFT.Description />
22+
</React.Suspense>
23+
</NFT>
24+
```
25+
26+
### New
27+
28+
The new version comes with 2 new props: `loadingComponent` and `fallbackComponent`.
29+
Basically, `loadingComponent` takes in a component and show it _while the internal fetching is being done_
30+
`fallbackComponent` takes in a component and show it _once the data is failed to be resolved_
31+
32+
```tsx
33+
<NFTProvider contract={contract} tokenId={0n}>
34+
<NFTMedia
35+
loadingComponent={<span>Loading NFT Image</span>}
36+
fallbackComponent={<span>Failed to load NFT</span>}
37+
/>
38+
<NFTDescription
39+
loadingComponent={<span>Loading NFT Description</span>}
40+
fallbackComponent={<span>Failed to load NFT Description</span>}
41+
/>
42+
</NFT>
43+
```
44+
45+
### Patch Changes
46+
47+
- [#5463](https://github.com/thirdweb-dev/js/pull/5463) [`f368793`](https://github.com/thirdweb-dev/js/commit/f368793375d099eec53569330af7a083e558e483) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Fixes PayEmbed error state appearing on certain errors
48+
49+
- [#5464](https://github.com/thirdweb-dev/js/pull/5464) [`b5227c9`](https://github.com/thirdweb-dev/js/commit/b5227c9a8fb4b4b4114c79077c2c1ba38fbad55f) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Adds the ability to override transaction values in createNewPack
50+
351
## 5.69.0
452

553
### Minor Changes

packages/thirdweb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "thirdweb",
3-
"version": "5.69.0",
3+
"version": "5.70.0",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/thirdweb-dev/js.git#main"

0 commit comments

Comments
 (0)