The 'currentView' feature maintains the currentView (as a string).
This is a very simple process. It merely provides a cross-communication mechanism to:
- set the currentView ...
app.currentView.actions.changeView(viewName)
- get the currentView ...
app.currentView.sel.getView(appState)
It is up to the various view-specific features to set/interpret. A
best practice would be to maintain the currentView value
(viewName
) using the active feature name.
For a high-level overview of how actions, logic, and reducers interact together to maintain this feature's state, please refer to the State Transition diagram.