Ink
05/16/2021, 4:16 PM@Composable
fun BankScreen() {
val viewModel: BankViewModel = viewModel()
}
Tried to follow https://insert-koin.io/docs/reference/koin-android/compose/ but Android Studio throws weird errorLilly
05/16/2021, 4:18 PMInk
05/16/2021, 4:20 PMLilly
05/16/2021, 4:25 PMDisposableEffect
but within this scope, you are not able to call @Composable functions, so I doubt you can instantite your viewmodel here.Lilly
05/16/2021, 4:28 PMInk
05/16/2021, 4:28 PM