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

Colton Idle

08/03/2022, 7:36 PM
android studio c9 out today https://androidstudio.googleblog.com/2022/08/android-studio-electric-eel-canary-9.html idk what this means just yet, but hopefully it means no flashing/resetting of nav graph when making a change.
Starting with Electric Eel Canary 9, if your project is using Compose version 1.2 or higher, Live Edit no longer needs to reset composition after code changes. Only the first code change made to a given file resets composition. Subsequent edits don't reset composition.
👍 3
👍🏾 2
go canary 3
🎉 2
l

Leland Richardson [G]

08/04/2022, 1:03 AM
that's the idea. let me know if you see cases that you think should work but don't. we should be preserving state that is outside of the composable scope you are editing directly, and is not "below" the composable scope you are editing.
c

Colton Idle

08/04/2022, 1:34 AM
gotcha. i think i have like 3 apps where live edit "doesn't work" because it restarts the nav graph (AFAICT), but i think the common thing between all the apps is that they use bottom tabs.
l

Leland Richardson [G]

08/04/2022, 2:35 AM
this is with c9 or before?
c

Colton Idle

08/04/2022, 1:44 PM
@Leland Richardson [G] this was before c9. Can't get c9 to work yet. Trying to figure that out today
a

Alan Leung

08/04/2022, 4:37 PM
@Colton Idle How consistently are you seeing that message? Is it only on emulator?
c

Colton Idle

08/04/2022, 4:39 PM
@Alan Leung I think you meant to tag @deviant
a

Alan Leung

08/04/2022, 4:40 PM
Sorry, @deviant, how often are you seeing that message? Is it only emulator?
d

deviant

08/05/2022, 5:28 AM
@Alan Leung yes. trying on emulator. it happens immediately during first code change after app deploying
a

Alan Leung

08/05/2022, 5:04 PM
@deviant We started looking at it. I have been able to occasionally reproduce it and it seems like it could be some ADB connection issue with emulators. Would you be able to capture the idea.log for me right after it fails and share it with me?
6 Views