--

It’s just a simplification. But you can assume that the “isLoading” flag would be a property of a specific screen State object.
But, generally speaking, you can structure the AppState in whichever way is more convenient for your app. Typically it makes sense to organize the AppState in different substates, one per screen. But it doesn’t need to be a rule.

--

--

Daniele Baroncelli
Daniele Baroncelli

Written by Daniele Baroncelli

Mobile architect (client/server), with over 15 years experience. Focusing on Android, iOS, Kotlin, Golang, Compose, SwiftUI, KMP, MVI.

No responses yet