https://kotlinlang.org logo
Title
n

Nuru

07/01/2022, 10:50 AM
Can we scope a viewmodel to a particular composable?
c

Colton Idle

07/01/2022, 1:32 PM
Note that this works with hilt out of the box.
a

annsofi

03/01/2023, 12:29 PM
I just made my own version of
hiltViewModel
that allows me to set a key because when I used the regular one I kept getting the same view model. Have I missed some easier way of doing this?
c

Colton Idle

03/02/2023, 9:15 AM
You should get the same view model? Isn't that the point? (unless im missing something here)