John O'Reilly
10/19/2022, 6:07 PMsingle { params -> SomeRepository(params.get()) }
and then in android client I have a number of view models that the repository instance is injected into e.g.
val someString = "someString"
val appModule = module {
viewModel { ViewModel1(get { parametersOf(someString) }) }
viewModel { ViewModel2(get(), get { parametersOf(someString) }) }
}
Feels like I'm missing something basic in terms of how this should be wired together? Or is this ok?John O'Reilly
10/19/2022, 6:23 PMJohn O'Reilly
10/19/2022, 8:24 PMPedro Francisco de Sousa Neto
10/20/2022, 1:42 AMarnaud.giuliani
10/20/2022, 7:24 AMJohn O'Reilly
10/20/2022, 7:26 AMJohn O'Reilly
10/20/2022, 11:32 AMarnaud.giuliani
10/21/2022, 3:39 PM