Hi folks. Please help. I have crash `java.lang.Ill...
# compose
y
Hi folks. Please help. I have crash
java.lang.IllegalStateException: pending composition has not been applied
in this code. Where I’m wrong?
s
Where is it crashing?
inside Compose-navigation?
Try moving the vm init code to the composable
If you need in in top level, move it outside the navigation block and scope it to activity/fragment
y
Thanks. I found where. it’s a null pointer exception in the state inside the child composition. I was confused by no one mention in the error logs
a
Can you post more of the stack trace involved?
y
@Adam Powell Yep. I’ll reproduce it tomorrow and send full stack trace
a
It's a pretty unusual stack trace to see and under most circumstances might indicate a compose bug, but a composable function named as a verb like
SendStableTokenNav
looks suspicious, like it might be trying to perform navigation from composition. An attempt to do so might lead to that stack trace from attempting reentrant composition.