Hello! I am considering Transition from Orbit-MVI ...
# orbit-mvi
m
Hello! I am considering Transition from Orbit-MVI to Kotlin StateFlow in KMP Project. Initially, I incorporated the testing framework and side effects, but with time I tried to make things as simple as possible. I've reached a point where I use Orbit only for updating the data flow. Could you help me understand what I might lose by forgoing Orbit in this context?
1
g
That’s a good question, specially when you have this https://github.com/rickclephas/KMP-NativeCoroutines and this https://github.com/rickclephas/KMM-ViewModel if you desire to share the VM
K 1
@Mikolaj Leszczynski @appmattus any thoughts on this? I know it’s a difficult question but since Orbit KMP is stale for a long time (~3 years for the swift-plugin) and no visible work is in progress, I believe it’s a good and healthy debate.
1
m
@Mikolaj you would not lose much - since you're already foregoing Orbit's threading etc. If you've reached this point, I don't recommend using Orbit at all, it's like trying to shoot a pigeon with a cannon. Just use StateFlow's
update
function
👍 1
m
@Mikolaj Leszczynski thenks for the reply 🙌 I began the migration process this week, and so far, everything has been smooth sailing. Your response has only strengthened my confidence in the decision