Stefan Oltmann
08/30/2023, 6:34 PMHristijan
09/01/2023, 1:40 PMStefan Oltmann
09/01/2023, 2:10 PMAppState
, I have a selectedMenu
property, which is of type AppMenu
(enum) and set to AppMenu.GALLERY
for instance. In my MainView
, I use a when
statement to determine which composable to display based on the current state.
As a result, I don't have a traditional back-button navigation setup. Instead, the back button simply triggers an AppAction.Close
event through my dispatcher, which then handles the necessary state transition. The architecture for handling Photos is similar to the Redux pattern used in the kmm-production-sample app.