https://kotlinlang.org logo
#compose
Title
# compose
h

Henning B

09/10/2020, 7:13 AM
I am testing out compose a bit. Just wondering if the preview is supposed to take this long to appear? One Hello World Text can take several seconds like 3-4 until it appears.
👍 2
d

damianpetla

09/10/2020, 7:29 AM
not sure if it suppose to but I have the same issue with this feature, takes too much time
s

Sergey Y.

09/10/2020, 7:44 AM
I have the same issue. My small project is compiling faster than compose preview is refreshing :)
☝️ 2
a

allan.conda

09/10/2020, 7:45 AM
Probably could be faster in the future. Anyway, the point is you don’t have to build the whole app. It doesn’t matter so much for a tiny project that builds faster. And yes, ours takes the same time 😄
h

Henning B

09/10/2020, 8:04 AM
Good to know that it's not a bug 😉 @allan.conda Good point. I was wondering where the benefit of the preview is when compilation takes the same amount of time but for a big project there will be a bigger difference. I have no doubts that it will get faster down the road :)
s

Sergey Y.

09/10/2020, 8:06 AM
Yes, the feature is definitely great. Would love to see working animations as well. I know the work in progress on them.
d

damianpetla

09/10/2020, 10:22 AM
I think the killer feature of preview is ability to launch individual view on device, that is sometimes a burden on big projects that require multiple steps to get to the view
👍 3
s

sante

09/10/2020, 11:40 AM
Also, you can launch previews with different themes and configurations so you don't have to do all of that on device
👍 3
v

Vinay Gaba

09/10/2020, 4:15 PM
Definitely not meant to be a replacement for Preview, but if you don’t mind a really quick incremental build, this might be helpful for your workflow - https://github.com/airbnb/Showkase (Disclaimer: I worked on this)
🔥 3
👍 1
3 Views