StavFX
05/11/2023, 6:49 PM@Composeable
fun Foo() {
val state by someReaktiveSingle.asRxJava2SingleSource().subscribeAsState()
...
}
Does that make sense?
Where should the conversion from Reaktive to rx2 happen? It shouldn't really happen in the commonMain
layer, right? iOS won't know what to do with itStavFX
05/11/2023, 6:54 PMArkadii Ivanov
05/11/2023, 7:28 PMStavFX
05/11/2023, 7:30 PMasRxJava2SingleSource
and asRxJava2Single
?
When would I explicitly want Source and not just Single?Arkadii Ivanov
05/11/2023, 7:31 PMStavFX
05/11/2023, 7:34 PM.subscribeAsState
? yeah that's a good idea actually, didn't think of thatArkadii Ivanov
05/11/2023, 7:36 PMbtw what's the difference betweenThe difference is in the return type, but I don't remember why they both exist at the same time. 🙂andasRxJava2SingleSource
?asRxJava2Single
StavFX
05/11/2023, 9:35 PMhttps://tenor.com/rIS6.gifâ–¾
Arkadii Ivanov
05/11/2023, 9:46 PM