how does one integrate android view models with co...
# android
u
how does one integrate android view models with compose @preview() ?
j
You shouldn't use your viewmodel within your composable preview.
u
So it is better to pass data instead of the view model to a screen - that way you can feed sample data to the preview composite
j
Correct, also makes it easier to reuse that composable component in other areas.
2
u
thanks jeff
👍 1