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?
Asad Mukhtar
09/25/2022, 9:40 AM
?
j
Jhonatan Sabadi
09/25/2022, 5:07 PM
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