Tin Tran

02/18/2022, 3:24 AM
And this starting to come back again after upgrading to navigation compose from 2.4.0-alpha09 to 2.4.1
java.lang.IllegalStateException: You cannot access the NavBackStackEntry's ViewModels after the NavBackStackEntry is destroyed.

Ian Lake

02/18/2022, 4:14 AM
We actually just talked about this exception and how it should never, ever happen. Please file a bug if you have a project that reproduces it, even rarely:

Tin Tran

02/18/2022, 4:25 AM
I’ve been trying to pinpoint what actually cause it but still no luck. It seems like a race condition happening inside navigation internal state or something.