Skip to content

Commit 436fa84

Browse files
committed
Changelog. Describe awaitCancellation usage
1 parent 15285c5 commit 436fa84

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
## 2026.3.10
2+
3+
**BREAKING CHANGE**
4+
5+
### React
6+
7+
* Add `awaitCancellation`cleanup helper
8+
* Can be used as a cleanup helper for React hooks
9+
10+
```kotlin
11+
useEffect {
12+
val unsubscribe = api.addHandler { setData(it) }
13+
14+
awaitCancellation {
15+
// will be called when React calls cleanup
16+
unsubscribe()
17+
}
18+
}
19+
```
20+
121
## 2026.3.0
222

323
**BREAKING CHANGE**

0 commit comments

Comments
 (0)