has any one been able to provide a composable prev...
# compose
l
has any one been able to provide a composable preview with instances generated by dagger? I'm trying things like
Copy code
@Preview
@Composable
fun ExampleCompPreview() {
    val viewComponent = ViewComponent.Initializer.init(AppComponent.init())
    val vmf = viewComponent.factory
    ExampleComp((vmf.create(ExampleViewModel::class.java)))
}
But no matter what I get:
A successful build is needed before the preview can be displayed.
(The app runs fine on a phone) Or even if anyone knows of a way to see debug logs for Previews it would be helpful.