From 0a794f16f6bb55e3394d5f4d2d575fc4d75e0a99 Mon Sep 17 00:00:00 2001 From: Alex Sokol / y9san9 Date: Mon, 19 Feb 2024 00:51:09 +0300 Subject: [PATCH] fix: `buildNavigationDI` is now composable --- .../app/meetacy/di/android/compose/navigation/NavController.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/compose/src/main/kotlin/app/meetacy/di/android/compose/navigation/NavController.kt b/compose/src/main/kotlin/app/meetacy/di/android/compose/navigation/NavController.kt index b52e72a..528fd2e 100644 --- a/compose/src/main/kotlin/app/meetacy/di/android/compose/navigation/NavController.kt +++ b/compose/src/main/kotlin/app/meetacy/di/android/compose/navigation/NavController.kt @@ -25,6 +25,7 @@ public fun NavigationScreen( ) } +@Composable public fun buildNavigationDI(di: DI): DI = di + di { val navController by provider { LocalNavController.current } }