Thread
#compose
    Yuri Drigin

    Yuri Drigin

    1 year ago
    Hi folks. Please help. I have crash
    java.lang.IllegalStateException: pending composition has not been applied
    in this code. Where I’m wrong?
    s

    Saiedmomen

    1 year ago
    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
    Yuri Drigin

    Yuri Drigin

    1 year ago
    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
    Adam Powell

    Adam Powell

    1 year ago
    Can you post more of the stack trace involved?
    Yuri Drigin

    Yuri Drigin

    1 year ago
    @Adam Powell Yep. I’ll reproduce it tomorrow and send full stack trace
    Adam Powell

    Adam Powell

    1 year ago
    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.