Can we scope a viewmodel to a particular composabl...
# compose
n
Can we scope a viewmodel to a particular composable?
c
Note that this works with hilt out of the box.
a
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
You should get the same view model? Isn't that the point? (unless im missing something here)