I am getting `java.lang.IllegalStateException: You...
# compose
k
I am getting
java.lang.IllegalStateException: You cannot access the NavBackStackEntry's ViewModels after the NavBackStackEntry is destroyed.
if I switch navigation to fast. Anyone found a solution for it?
This seems to prevent the crash.
c
I wonder if I should be wrapping all of my calls with this. Hm
i
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
c
Oh cool. TIL. Maybe I was misremembering from fragment land.
i
The exception and preventing clicks when your screen is animating out are entirely, completely unrelated to one another
👍 1
Whether you click 1000 times during the animation or not, it should not crash. You probably still don't want the user to click 1000 times though 😄