should a function or property be used to represent...
# coroutines
z
should a function or property be used to represent a ViewModel’s stream of states? vote
1
for property and
2
for function
1️⃣ 10
which is more “idiomatic” ?
z
I would expect
state: State
to be a property, so I would also expect the reactive version of that to be a property.
👍 1
1
Also this follows property/function guidelines since the flow itself is cheap to calculate and doesn’t change over time.