I am trying to debug recompositions using <Rebugge...
# compose
v
I am trying to debug recompositions using Rebugger, and I am seeing that my composable is recomposing due to a lambda instance
Copy code
`onRefresh` instance changed, but content remains the same -> `function refresh (Kotlin reflection is not available)`
But I'm passing the lambda as a function parameter, which should not be created new Lambda Function instance If I'm not wrong
replies
here is a
LazyPagingItem<T>
. I'm using Compose Multiplatform and using Cash App Paging library for Paging3
Copy code
BaseScreenContent(
    component = component,
    onRefresh = replies::refresh,
    onRetry = replies::retry
)
s
It does create a new reference each time
v
@shikasd any way around this? As its always recommended to use function reference rather than creating lambdas Is it the Cash App Paging Library's fault?
s
I think it is mostly a stability problem, you can try enabling strong skipping mode to workaround this problem
v
@shikasd any guide on how to enable it?
v
Thanks