Compose Runtime 1.13.0-rc01 is listed on Nov 4, 2026 with a single change: a dependency bump of androidx.tracing:tracing-wire to 2.0.5. The substance of 1.13 is in the beta notes before it, and since the RC freezes the API surface, this is the moment to check your code. Everything here comes from the official Compose Runtime release notes, fetched today. Stable 1.13.0 is not listed yet; the current stable is 1.12.1.
1. Kotlin 2.2 is the entry ticket
1.13.0-beta01 (Oct 7, 2026) moved the libraries to target Kotlin 2.2 and require kotlinc 2.2. If your build is still on an older Kotlin toolchain, that upgrade comes before anything else, and it is the most likely reason a bump to the RC fails to compile.
2. The computedStateOf block is now read-only
The notes call this a behavior change: the computedStateOf calculation block is read-only, and writing to a state inside it throws an IllegalStateException. The same discipline has always applied to derivedStateOf; the new enforcement makes the failure loud instead of a source of subtle invalidation loops. The pattern to remove looks like this:
var lastSeenMax by mutableIntStateOf(0)
// Smell: side effect inside a calculation block
val isNearEnd by remember {
derivedStateOf {
val idx = listState.firstVisibleItemIndex
lastSeenMax = maxOf(lastSeenMax, idx) // write inside a derived calculation
idx >= itemCount - 3
}
}
// Fix: keep the calculation pure, record the side effect separately
val isNearEnd by remember {
derivedStateOf { listState.firstVisibleItemIndex >= itemCount - 3 }
}
LaunchedEffect(listState) {
snapshotFlow { listState.firstVisibleItemIndex }
.collect { lastSeenMax = maxOf(lastSeenMax, it) }
}
Watch out: the release note names computedStateOf specifically. I could not verify from the notes that derivedStateOf got the same enforcement, so treat the snippet above as a hygiene fix, not a claim about derivedStateOf behavior.
3. NaN no longer defeats skipping
Passing Float.NaN or Double.NaN into a @Composable function used to prevent it from skipping recomposition, because NaN does not equal itself. The notes say this affected functions receiving Dp.Unspecified, which is common in layout and animation parameters. beta01 fixes it, so composables with unspecified dimension defaults can now skip as expected. If you worked around this by adding manual guards or remember wrappers, they can be removed after you measure.
@Composable
fun Thumb(size: Dp = Dp.Unspecified, modifier: Modifier = Modifier) {
// Before the fix, an unchanged Dp.Unspecified argument could still force recomposition
Box(modifier.then(if (size.isSpecified) Modifier.size(size) else Modifier))
}
4. Leaks and invalidation bugs fixed
- beta02 (Oct 21, 2026): a memory leak in
ComputedStatethat could keep recorded state values from being released is fixed, along with a failure to invalidate when the calculation block calledSnapshot.withoutReadObservation. - beta01: a leak in
LinkComposerwhere movingmovableContentretained wrapper group slots. - beta01 (external contribution): unexpected invalidations in
computedStateOfwhen read withSnapshotStateObserver. - 1.12.0-beta01: a potential leak in how
derivedStateOf()values are tracked in composition, and snapshot apply observers not being notified when a state object was created in one snapshot and modified in a concurrent one before the first applied.
If your heap dumps show retained state values behind long-lived screens, these are worth reading against your LeakCanary traces before blaming your own code.
5. Observer and tracing changes
CompositionObserveris now resolved once per composition pass, sosetObserverchanges apply on the next pass. Movable content insertion now reportsonBeginCompositionandonEndComposition.ComposeTracergained off-main-thread support.lifecycle-runtimewas updated to 2.10.0 for bundled lint checks with AGP 9.5.0-alpha04 or later.- 1.13.0-alpha01 (Aug 12, 2026):
produceState()andFlow.collectAsState()now accept aSnapshotMutationPolicy, so you can control equality and merging of the underlyingState. It also fixedSnapshotStateSet.writeToParcel, which serialized only the first entry.
Upgrade checklist
- Confirm the toolchain is on Kotlin 2.2 before touching the Compose BOM.
- Search for state writes inside
derivedStateOfandcomputedStateOfblocks and move them to effects. - Remove NaN or
Dp.Unspecifiedworkarounds only after re-measuring recomposition counts. - If you implement a
CompositionObserver, re-test anything that assumed mid-pass observer swaps. - Re-run leak checks on screens using
movableContent.
An RC with a one-line change is a gift: nothing moves between now and 1.13.0 stable except what you fix. The read-only enforcement is the item most likely to surface in your own code.
Source: Compose Runtime release notes (1.12.0-beta01 through 1.13.0-rc01) and the AndroidX release index, developer.android.com, retrieved Nov 17, 2026.
No comments yet. Be the first to leave one!