Albert Chang
11/14/2023, 5:57 AMmutableStateOf
started to fail with java.lang.RuntimeException: Method getMainLooper in android.os.Looper not mocked
thrown in androidx.compose.runtime.ActualAndroid_androidKt.<clinit>
. While I understand the motivation of the change, I'm wondering if it makes sense to make MainThreadId
fallback to -1 gracefully so that the user don't have to update every test or use unitTests.returnDefaultValues = true
, since this is a really common use case.ascii
11/14/2023, 6:22 AMAlbert Chang
11/14/2023, 6:23 AMascii
11/14/2023, 6:23 AM