Do not inline OutcomeItem as it causes a compose build error

This commit is contained in:
vfsfitvnm 2022-06-06 16:51:08 +02:00
parent b4e9715592
commit b61dbf672f

View file

@ -22,10 +22,10 @@ import it.vfsfitvnm.vimusic.utils.secondary
import it.vfsfitvnm.youtubemusic.Outcome
@Composable
inline fun <T> OutcomeItem(
fun <T> OutcomeItem(
outcome: Outcome<T>,
noinline onInitialize: (() -> Unit)? = null,
noinline onRetry: (() -> Unit)? = onInitialize,
onInitialize: (() -> Unit)? = null,
onRetry: (() -> Unit)? = onInitialize,
onUninitialized: @Composable () -> Unit = {
onInitialize?.let {
SideEffect(it)