Shakil Karim

    Shakil Karim

    1 year ago
    When this exception usually occurs? I got this exception in Logs
    Unsupported concurrent change during composition. A state object was " +
        "modified by composition as well as being modified outside composition
    java.lang.IllegalStateException: 
      at androidx.compose.runtime.Recomposer.applyAndCheck (Recomposer.kt:801)
      at androidx.compose.runtime.Recomposer.access$applyAndCheck (Recomposer.kt:103)
      at androidx.compose.runtime.Recomposer.performRecompose (Recomposer.kt:1064)
      at androidx.compose.runtime.Recomposer.access$performRecompose (Recomposer.kt:103)
      at androidx.compose.runtime.Recomposer$runRecomposeAndApplyChanges$2$2.invoke (Recomposer.kt:447)
      at androidx.compose.runtime.Recomposer$runRecomposeAndApplyChanges$2$2.invoke (Recomposer.kt:416)
      at androidx.compose.ui.platform.AndroidUiFrameClock$withFrameNanos$2$callback$1.doFrame (AndroidUiFrameClock.android.kt:34)
      at androidx.compose.ui.platform.AndroidUiDispatcher.performFrameDispatch (AndroidUiDispatcher.android.kt:109)
      at androidx.compose.ui.platform.AndroidUiDispatcher.access$performFrameDispatch (AndroidUiDispatcher.android.kt:41)
      at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.doFrame (AndroidUiDispatcher.android.kt:69)
      at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1039)
      at android.view.Choreographer.doCallbacks (Choreographer.java:860)
      at android.view.Choreographer.doFrame (Choreographer.java:781)
      at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1026)
      at android.os.Handler.handleCallback (Handler.java:914)
      at android.os.Handler.dispatchMessage (Handler.java:100)
      at android.os.Looper.loop (Looper.java:225)
      at android.app.ActivityThread.main (ActivityThread.java:7563)
      at java.lang.reflect.Method.invoke (Native Method)
      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:539)
      at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:994)