martmists
07/18/2023, 10:41 PMBig Chungus
07/19/2023, 8:45 AMDavid Herman
07/19/2023, 6:26 PMmartmists
07/22/2023, 9:55 PMref
doesn't look like it'd work:
The lambda that ref takes in is not Composable. It will be called only once when an element added into a composition. Likewise, the lambda passed in onDispose will be called only once when an element leaves the composition.
This means if the content is produced by a produceState
, it will never be set to the new content when produceState
updates.Big Chungus
07/23/2023, 6:02 AMmartmists
07/23/2023, 7:34 AMfun SideEffect(
effect: () -> Unit
) {
currentComposer.recordSideEffect(effect)
}
with no nativeElement specified anywhere. Where should I look?Big Chungus
07/23/2023, 7:37 AMBig Chungus
07/23/2023, 7:38 AMmartmists
07/23/2023, 7:44 AMBig Chungus
07/23/2023, 7:59 AMBig Chungus
07/23/2023, 8:03 AMBig Chungus
07/23/2023, 8:03 AM