I'm migrating a complex meta-app from views to Compose. It's a special app which reads a description in json of which screens and views and actions has. Then it paints it using Compose. It is working but now I'm implementing the actions part. When I click on a button, i call a singleton class dedicated to manage actions that depending of the kind of action, it executes some code. For the case of openning sections, it calls a function that extracts the destination section from the Action, and then, it must open it. Previously in views system it was easy, it simply writtes on another singleton which stores the current screen and opens the new screen starting a new activity. Now I'm not sure how to port this to a Compose app. Once having the ID of the destination screen, how can I open it? I have a navhost on the main app screen, that navhost needs to receive that ID, but it's on the action management singleton. Maybe can I store the "current section" variable in the singletion dedicated to section management and in some way observe it on the main screen with the navhost? how can I do it?