Hi everyone, All my screens have viewmodel and it ...
# compose
m
Hi everyone, All my screens have viewmodel and it gives me an error when showing the preview, how do you solve this problem?
j
previewing components with fakes
m
I need to preview the screen not the components separately
i
The approach of passing in the ViewModel as an argument you can override for Preview works well here: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1623779342232600?thread_ts=1623778752.232300&cid=CJLTWPH7S
m
thanks, now I understand the idea much better, I am going to refactor my code.