What's everyone's thoughts on passing in your viewModel to your top level composable VS passing in just your uiState? I'm leaning towards passing in the uiState since it seems that's all you need to preview/test but I was wondering if there's a best practice we should follow and why?
08/19/2021, 9:12 PM
I currently have a vm defined and use hiltViewModel() as a default, but I'm most likely going to just pass in state.
08/26/2021, 11:38 AM
Preview does not support ViewModels, so if you would like to have previews for your top level composables, you must pass something else.