Pablichjenkov
01/16/2025, 7:41 PMLifecycleEventEffect(Lifecycle.Event.ON_CREATE)
inside a lazycolumn. Some subcomponents use it. I notice the onCreate() event gets called multiple times as the lazycolumn scroll up and down. I would expect this from the onStart() event as composables get attached/detached to/from the composition but not the onCreate() event
Is this the expected behavior or a bug?jw
01/16/2025, 8:34 PMjw
01/16/2025, 8:35 PMjw
01/16/2025, 8:36 PMPablichjenkov
01/16/2025, 8:39 PMshikasd
01/18/2025, 2:10 AMComposables are attached / detached from composition
While slightly offtopic, this is not quite the correct model here. Technically each item in a lazy layout is recreated with nodes being reused. This means that every state is lost and every effect will be triggered as if it was never executed before. This is substantially different from what recyclerview did with views, since there state was preserved unless explicitly cleared.
Pablichjenkov
01/18/2025, 4:12 AMPablichjenkov
01/18/2025, 4:13 AMPablichjenkov
01/18/2025, 4:18 AM