eygraber
08/04/2021, 3:17 AM@Composable
fun Parent(state: State, eventEmitter: EventEmitter<Event>)
eventEmitter
will always be the same instance for a given composition, and uses an identity based equals
and hashCode
. Is there anything else that I need to do?
Note that I can't use CompositionLocal
here because a lot of the events I need to emit occur in non `@Composable`lambdas (e.g. onClick
).Zach Klippenstein (he/him) [MOD]
08/04/2021, 3:32 AMeygraber
08/04/2021, 3:34 AM