Open yoobi opened 1 month ago
Hi, just a quick question about dependenciesContainerBuilder
I've created a wrapper called Navigator which I set in my MainActivity with a DisposableEffect. Is it alright to pass such objet to dependenciesContainerBuilder ?
Navigator
MainActivity
DisposableEffect
dependenciesContainerBuilder
val composableNavigator = ComposableNavigator.rememberNavigator() // Creates navController, bottomSheetState etc... DisposableEffect(key1 = composableNavigator) { navigator.setNavigation(composableNavigator.navController) onDispose { navigator.clearNavigation() } }
ModalBottomSheetLayout(...) { DestinationsNavHost( dependenciesContainerBuilder = { dependency(navigator) }, navController = navController, navGraph = NavGraphs.root, startRoute = startRoute ) }
Hi, just a quick question about dependenciesContainerBuilder
I've created a wrapper called
Navigator
which I set in myMainActivity
with aDisposableEffect
. Is it alright to pass such objet todependenciesContainerBuilder
?