In my app's navigation I call saveState and restoreState to have a smooth user experience and not load the screens again and again everytime the user navigates. But in one scenario I don't want this behaviour. Whenever one user blocks another it call's popBackStack() to leave the blocked users profile. What I want now is that whatever screen he ends up after popBackStack() it gets reloaded and NOT restored. Because I want to hide all the content of that blocked user from every list in my app.
Right now after navigating back from the blocked users profile it still shows this users content inside the list because the screen state is restored with outdated data.
What I'm looking for is a way to delete all saved states programmatically. Something like navController.clearAllSavedStates() would be a dream.
EDIT
Calling navController.popBackStack(saveState = false)
as suggested is not working because it tells me "Cannot find a parameter with this name: saveState"