In Jetpack Compose 0.3.0-build143, androidx.compos...
# compose-desktop
l
In Jetpack Compose 0.3.0-build143, androidx.compose.runtime.onCommit has vanished from the runtime. Was this intentional?!?
👌 1
o
API surface matches that of Android Compose.
a
onCommit
, etc are going away in favor of
DisposableEffect
and the other effect composables.
l
Many thanks… works now just fine migrating to
DisposableEffect
.
s
Where can i learn more about effects and how to use it? Any documentation available?
a
Yeah, sure. Here ya go: Docs: SideEffect LaunchedEffect DisposableEffect Samples: EffectSamples ProduceStateSamples Updating effect usage You can also just poke around cs.android.com or GitHub for more.
🙏 1
s
Thanks. By the way onCommit and onActive (https://developer.android.com/reference/kotlin/androidx/compose/runtime/package-summary#onactive) still shows up in the doc there.