alorma
10/26/2020, 6:33 PMtry
inside a @Composable block?
@Composable
override fun build() {
try {
}
}
Grigorii Yurkov
10/26/2020, 7:09 PMComposable
annotation is not just annotation, it forces compiler to make magic things under the hood. That's like you can't use synchronized
block in suspend functions. And I think common ui don't need try catch
and if it needs that means you are doing something wrongalorma
10/26/2020, 7:10 PMalorma
10/26/2020, 7:10 PMJeremy
10/26/2020, 7:13 PMLaunchedTask
otherwise it will get executed multiple timesJeremy
10/26/2020, 7:14 PMLaunchedTask
jaqxues
10/26/2020, 7:14 PMalorma
10/26/2020, 7:16 PMalorma
10/26/2020, 7:16 PMjim
10/26/2020, 9:47 PMMark Murphy
10/26/2020, 10:32 PMtry/catch
in a composable? I just tried it, and everything seemed to run correctly. My exception was caught, and the composable still rendered.
I'm not doubting that there is a problem, but, what's the scenario that demonstrates it?jim
10/26/2020, 10:33 PMMark Murphy
10/26/2020, 10:34 PMAbhishek Bansal
09/10/2023, 7:38 AMCanvas: trying to draw too large
exception. What is the way to handle such issues apart from reducing image size? because image size may not be in my control all the time.Mark Murphy
09/10/2023, 3:55 PMAbhishek Bansal
09/12/2023, 7:05 AM