<https://kotlinlang.slack.com/archives/CJLTWPH7S/p...
# compose
c
https://kotlinlang.slack.com/archives/CJLTWPH7S/p1632315801270100 Some times when you are coding tired, you may end up mistaking the onClick lambda with the Composable one...damn it.
Copy code
AppButton(label = "TE\$T") {
                            mediaPlayback.playPause()
                        }
s
Definitely had this happen before, imo named arguments are your friend with compose
c
True. I have the damn onClick, it was insane. I couldn't understand why it was receiving a click 😓 You know when you feel really crazy? How is this happening? Funny.
👍 1
c
I would also highly suggest using named arguments to avoid this 🙂
m
I always try to NOT have callback parameters at the end of a parameter list to enforce the usage of named arguments.
4