https://kotlinlang.org logo
Title
c

Colton Idle

03/15/2023, 3:42 AM
My kotlin lang slack search if failing me but i think someone here said that AAC ViewModels with public suspend functions are a code smell. Am I remembering correctly? Or are public suspend functions fine?
p

Pablichjenkov

03/15/2023, 3:46 AM
I kind of agree with the smell opinion. I would prefer just input/output flows in/from my AAC VMs. That way they look closer to an Actor or an MVI store. But there maybe a case for exposing a suspend function, although I don’t have one on the top off my head
j

Josh Eldridge

03/15/2023, 4:37 AM
Is the smell the fact that it should be using its own view model scope with a launch instead of delegating to a scope from the UI?