kenkyee
10/13/2021, 7:30 PMMikolaj Leszczynski
10/13/2021, 8:26 PMmiqbaldc
02/16/2022, 3:31 AMintent
calls was to have a single responsibility in this case, so the method has its own intent
block to testMikolaj Leszczynski
02/16/2022, 8:28 AMfun doSomething(...) = intent {
validatingData()
validatingResult()
updatingState()
}
suspend fun SimpleSyntax<STATE, SIDE_EFFECT>.validatingData() {...}
That said, the potential race condition is highly situational so your mileage may vary. You might find you’re fine with the original solutionmiqbaldc
02/16/2022, 9:20 AMSimpleSyntax
extensions approach in this case (@Anang Kur). Therefore it’s preferred than executing 3 different intent
in former ways?
Even tho’ theextensions seems coupling our method to orbit-mvi framework in this case 🙏🏻SimpleSyntax
Benoît
02/17/2022, 10:18 AMBenoît
02/17/2022, 10:19 AM