Hi, everyone how you guys handle the preview func...
# compose
a
Hi, everyone how you guys handle the preview functions, like I have a function in which I pass the user model to set the values in composable views, and Preview didn`t able to show preview if any parameter without default value added in the function definition, so you guys assign the default UserModel or not?
?
j
It's a good practice to use UserState, you can have your UserModel inside within others screen state values, like configuration and etc. And yes, it's a good approach to set a default value to make preview easier and to set it in viewModel. Search for new documentation of Google about UiLayer