Join Slack
Powered by
Hi everyone, All my screens have viewmodel and it ...
# compose
m
mario
06/17/2021, 10:38 PM
Hi everyone, All my screens have viewmodel and it gives me an error when showing the preview, how do you solve this problem?
j
Javier
06/17/2021, 10:42 PM
previewing components with fakes
m
mario
06/17/2021, 10:45 PM
I need to preview the screen not the components separately
i
Ian Lake
06/17/2021, 10:48 PM
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
mario
06/17/2021, 11:05 PM
thanks, now I understand the idea much better, I am going to refactor my code.
Open in Slack
Previous
Next