I have a screen that sets up a search from which I navigate to the search results screen.
I have a TopBar, when I use that TopBar to navigate back to the search ‘setup’ screen, I want to restore that screen with the previous values that I had selected
I’d hoped that the TopBar/navigation combo would give me access to the route parameters that I added when going from searchSetup -> searchResult and I could use those parameters to rebuild a route back to the search setup screen (hope that makes sense), but I can’t find a way to access those params during the back navigation.
I feel like I’m missing something simple here. Is there an out of the box solution that I’m missing? How is this done on Android (SavedStateHandle maybe?)
Just as an aside, I’m creating my own ViewModel that I inject with Koin, so I could manage some sort of shared state if necessary
Thanks