Facing an issue related to the horizontal pager wh...
# compose
v
Facing an issue related to the horizontal pager where the pager lambda is getting called multiple time.. Has anyone faced this before ?
c
The amount of times something recomposes is technically out of your control and compose can decide to recompose something whenever it wants so you shouldn't really look into it too much IMO. compose does have debugging tools for compose count and compose perf though so you could look into those. Note: To clarify, I'm not saying that something might not be wrong with your code, but the fact that something recomposes multiple times is not necessarily an issue
m
I had issue with KMM app where model class was coming from
shared
module and Compose didn’t have a way to infer it’s stability. adding compose runtime to the
shared
module solved my issue