You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm making @Preview for child composable AS can't render preview for this composable and show render error with exception like:
java.lang.IllegalStateException: Current Composable is not wrapped in KoinNavigation
at dev.burnoo.cokoin.navigation.NavigationKt$LocalNavController$1.invoke(Navigation.kt:23)
at dev.burnoo.cokoin.navigation.NavigationKt$LocalNavController$1.invoke(Navigation.kt:22)
at layoutlib.internal.kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at androidx.compose.runtime.LazyValueHolder.getCurrent(ValueHolders.kt:29)
at androidx.compose.runtime.LazyValueHolder.getValue(ValueHolders.kt:31)
at androidx.compose.runtime.ComposerImpl.resolveCompositionLocal(Composer.kt:1774)
at androidx.compose.runtime.ComposerImpl.consume(Composer.kt:1744)
at dev.burnoo.cokoin.navigation.NavigationKt.getNavController(Navigation.kt:82)
I can build app and it run w/o problem. So it just AS @Preview problem.
The text was updated successfully, but these errors were encountered:
Let say. I have something like like:
Navigation
.....
Composable20
....
Composable21
}
When I'm making @Preview for child composable AS can't render preview for this composable and show render error with exception like:
java.lang.IllegalStateException: Current Composable is not wrapped in KoinNavigation
at dev.burnoo.cokoin.navigation.NavigationKt$LocalNavController$1.invoke(Navigation.kt:23)
at dev.burnoo.cokoin.navigation.NavigationKt$LocalNavController$1.invoke(Navigation.kt:22)
at layoutlib.internal.kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at androidx.compose.runtime.LazyValueHolder.getCurrent(ValueHolders.kt:29)
at androidx.compose.runtime.LazyValueHolder.getValue(ValueHolders.kt:31)
at androidx.compose.runtime.ComposerImpl.resolveCompositionLocal(Composer.kt:1774)
at androidx.compose.runtime.ComposerImpl.consume(Composer.kt:1744)
at dev.burnoo.cokoin.navigation.NavigationKt.getNavController(Navigation.kt:82)
I can build app and it run w/o problem. So it just AS @Preview problem.
The text was updated successfully, but these errors were encountered: