https://kotlinlang.org logo
#compose
Title
# compose
s

sashjakk

11/02/2020, 10:00 PM
🤔 any known compatibility issues exist with compose and new data store? Looks like enabling new IR backend breaks my app with
Copy code
e: java.lang.IllegalStateException: Backend Internal error: Exception during IR lowering
a

Alexjlockwood

11/03/2020, 2:09 AM
i saw this before but forgot how to reproduce it so was unable to file a bug. i would file one if you get a chance 😄
a

allan.conda

11/28/2020, 6:39 PM
Probably something similar is happening in Compose, I encountered this issue in a ViewModel.
Copy code
@ExperimentalGetImage
fun initialize() {
    imageStateFlow
        .onEach(::analyzeImage)
        .launchIn(viewModel)
}

@ExperimentalGetImage
fun analyzeImage() {}
fixed with
Copy code
imageStateFlow
        .onEach{ analyzeImage(it) }
        .launchIn(viewModel)
👍 1
s

sashjakk

11/28/2020, 9:00 PM
Right, same worked for me 👍
👍 1