mbonnin
02/23/2020, 2:35 PMComposition requires an active composition context
when trying to do that.onClick
crashes the compiler though...Adam Powell
02/23/2020, 2:39 PMval foo = myAmbient.current
SomeComposable(..., onClick = { foo.doThing() })
mbonnin
02/23/2020, 2:40 PMAdam Powell
02/23/2020, 2:41 PMLeland Richardson [G]
02/23/2020, 4:45 PMmbonnin
02/23/2020, 4:47 PMonClick = {
val sessionId = ActiveSessionIdAmbient.current
// trigger an API call with sessionId
}
Adam Powell
02/23/2020, 4:48 PMLeland Richardson [G]
02/23/2020, 4:49 PMmbonnin
02/23/2020, 4:51 PM4.0.0-alpha09
and I can confirm it's not highlighted