Compose performance issue during navigation

129 views Asked by At

Hello there guys We've decided to rewrite our app to compose. However we've faced a performance issue, specially on slower devices (like my Xiaomi POCO X3). On Samsung S22 and on any emulator everything works fine. So whats the problem? When I navigate from Screen A to Screen B (no matter if I am using navigation with Fragments, Voyager Appyx or anything) and during the navigation animation I change the state of Screen B (Loading -> Success/Error) I experience frame drop. I'm using MVI Architecture with the help of Orbit MVI library. I tried to optimize the compose with kotlinx ImmutableList library. The state of request is represented by sealed class model that contains: Uninitialised, Loading, Success or error. Everything marked with Immutable annotation. For DI I'm using Koin and thats probably the only thing I haven't changed yet to test it. Anyone had similar issues?

0

There are 0 answers