Show lyrics menu even when the fetch fails (#221)

This commit is contained in:
vfsfitvnm
2022-08-17 11:41:10 +02:00
parent 1682228ece
commit 59f66c5b65
2 changed files with 122 additions and 109 deletions

View File

@@ -25,10 +25,12 @@ fun relaunchableEffect(
@Composable
@NonRestartableComposable
fun relaunchableEffect2(
fun relaunchableEffect(
key1: Any?,
key2: Any?,
block: suspend CoroutineScope.() -> Unit
): RememberObserver {
): () -> Unit {
val applyContext = currentComposer.applyCoroutineContext
return remember(key1) { LaunchedEffectImpl(applyContext, block) }
val launchedEffect = remember(key1, key2) { LaunchedEffectImpl(applyContext, block) }
return launchedEffect::onRemembered
}