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

Colton Idle

03/30/2023, 10:42 PM
a

andylamax

03/30/2023, 11:39 PM
Good job
j

Jaime

03/30/2023, 11:39 PM
nice
a

andylamax

03/30/2023, 11:39 PM
Although looks like at the moment, this is best posted in #compose-android
c

Colton Idle

03/31/2023, 4:10 AM
keep forgetting they made that split.
e

ephemient

03/31/2023, 6:56 AM
it's only Android specific because of its build setup and the use of
android.util.Log
, and its hack for getting
composableName
is JVM-specific; that aside, the core idea would be implementable in compose-multiplatform
s

Shakil Karim

03/31/2023, 10:14 AM
i hope if they can add something like "Self._printChanges()" from SwiftUI in Compose.
s

shikasd

03/31/2023, 7:14 PM
Note that the function can also be recomposed because of the inner state change, which is a bit harder to track :)
e

ephemient

03/31/2023, 7:17 PM
@Shakil Karim https://stackoverflow.com/a/69859435 that's not meant to be used by SwiftUI code
c

Colton Idle

04/01/2023, 7:46 PM
@theapache64 looks like you've got a multiplatform freature request buddy. 😅
t

theapache64

04/02/2023, 4:04 AM
@Colton Idle 😄 uh ho!! i didn’t expect a multiplatform request this soon. Tracking it here : https://github.com/theapache64/rebugger/issues/2 (please vote)
@shikasd I am thinking of creating an IDE plugin to do that https://github.com/theapache64/rebugger/issues/1. That’d fix it right? or you’re talking about a different problem ?
s

shikasd

04/02/2023, 4:17 PM
Depends on what you want to track,
rebugger
is tracking call site changes, I was thinking more along the lines "what read states are causing current scope to recompose"
It is fairly frequent to pass the same lambda/state as a parameter, so you won't see a difference on the callsite, only if you track state reads
t

theapache64

04/05/2023, 6:03 PM
aaah..got it. that’s something i wanna look little more
7 Views