Could anyone advise how to implement a navigation stack where screens are referencing each other?
For example something like an App Store that has the following screens & transitions:
- A list of apps allows navigating to an app view.
- The app view allows navigating to a list of similar apps.
As we have a requirement of UI state to be represented in data, there is a problem there. States referencing each other, as a result, the app state structure has an undefined size.
The situation becomes even more problematic if we would try to modularize the app by moving each screen into its own library and try to isolate screens from each other to enable parallel compilation.