Apr 13, 2025
For example, when using ExoPlayer in a composable function, you might want to sync the playback state or trigger an action (e.g. play() or pause()) based on a Compose state value. Since you shouldn't call these functions directly during recomposition, SideEffect is ideal.
