https://kotlinlang.org logo
Title
t

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.
i

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: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1644964904734889?thread_ts=1644600756.208419&cid=CJLTWPH7S
t

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.