Hello, would the new AppState Transform be availab...
# compose
d
Hello, would the new AppState Transform be available in KMP as well?
a
Hey Dumitru, which AppState Transform do you mean? A link would help, and then I can tell you if it works in KMP.
d
https://lnkd.in/p/eRpKrmZx I have this LinkedIn post which shows it quite well:
d
I guess KMP will wait for now: Experimental: AppState is in alpha and its APIs are subject to change
👍🏼 1
t
I mean, their whole presentation point was that it was pure compose, so it shouldn't be hard to make it work with KMP eventually I imagine
👍🏻 1
r
AppState is already KMP. The only piece that isn't is
statestore-datastore
, and based on conversations I had at Android Dev Summit that should be fixed soon.
👌 1
y
Anyone knows what can AppState do that StateFlow can’t?
d
Achieving the same thing, but with a shifted mental paradigm.
y
Sorry, what do you mean by a 'shifted mental paradigm'?
d
Well, I don't like that all the source/input flows are declared as function arguments here and the values come back as lambda parametrs, when the number of sources grows it's becomes heavy, then moving their order you need to move also the order of lamba parameters, then observing each ones type is another cognitive effort you need to pay
👍 2
y
Personally, even with that transform feature you mentioned, I still don’t think it’s enough to drop StateFlow. If the Kotlin team wants to add it as new feature, they can
g
there is existing Molecule too Not sure that Kotlin team should be involved here, it's not really language feature, it's compose feature