pull down to refresh

I think state belongs in a database. This allows you to base your logic on pure functions. Anything that is mutable can be managed by the db.
That's the tradeoff when not using OOP usually, a global data store, but OOP programs usually end up with one anyway. And, the benefit of most data stores is they feature a declarative access language, so IMO it's not much of a tradeoff.
reply