hey everyone, i want to have multiple viewmodel instance of the same viewmodel class based on a key and want to retrieve those using the key, what the best way to achieve this?
a
Anton Mamkin
12/20/2024, 12:40 PM
Copy code
val viewModel1: ViewModelType = koinViewModel(key = key1)
val viewModel2: ViewModelType = koinViewModel(key = key2)
maybe something like this
k
Kashismails
12/20/2024, 12:52 PM
key is for identification but it wont work if i go back and come again