Zoltan Demant
04/23/2025, 10:11 AMModifier.animateItem()
Sometimes when I use this on my items, 1-2 of them will move around during scroll despite their indexes not changing.
Its usually in the form of me scrolling back up, and when item #2 comes back into view its positioned at the bottom of the list and animated up to its actual position (where Id expect it to be at to begin with).
• I use contentType quite heavily, could that be the culprit? If items are "re-used"; then their positions would indeed need to be animated?
• It only happens ocassionally, perhaps 1-2 times per week (daily usage).Zach Klippenstein (he/him) [MOD]
04/23/2025, 3:09 PMZach Klippenstein (he/him) [MOD]
04/23/2025, 3:10 PMcontentType
is only used for optimizing which nodes get reused for which items, if you do that wrong the worst that should happen is composition will be a little slower.Zoltan Demant
04/23/2025, 3:30 PMZach Klippenstein (he/him) [MOD]
04/23/2025, 5:42 PMIf my understanding is correct then having one contentType for each type of item here is correct usage too?Yea
Zach Klippenstein (he/him) [MOD]
04/23/2025, 5:42 PMZoltan Demant
04/23/2025, 6:00 PMZoltan Demant
04/23/2025, 6:06 PMZach Klippenstein (he/him) [MOD]
04/23/2025, 11:01 PM