From f33b0950d0fd2c49d6cea52faa778fad2ef58c2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adriel=20Caf=C3=A9?= Date: Sun, 20 Feb 2022 21:16:07 -0300 Subject: [PATCH] fix: return fallback dependency key --- .../kotlin/cafe/adriel/voyager/core/model/ScreenModelStore.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voyager-core/src/commonMain/kotlin/cafe/adriel/voyager/core/model/ScreenModelStore.kt b/voyager-core/src/commonMain/kotlin/cafe/adriel/voyager/core/model/ScreenModelStore.kt index fd5d54fd..90dd2c40 100644 --- a/voyager-core/src/commonMain/kotlin/cafe/adriel/voyager/core/model/ScreenModelStore.kt +++ b/voyager-core/src/commonMain/kotlin/cafe/adriel/voyager/core/model/ScreenModelStore.kt @@ -36,7 +36,7 @@ public object ScreenModelStore { } ?: lastScreenModelKey.value ?.let { "$it:$name" } - ?: error("ScreenModel not found: ${screenModel::class.qualifiedName}") + ?: "standalone:$name" @PublishedApi internal inline fun getOrPut(