Closed tralves closed 1 year ago
@tralves just worried it would break for someone already using it
@tralves @farfromrefug good! if before this made a tiny loop and now it works, it seems fine to me. I'll try to add another pr to be able to directly access the collectionview from .value since it's the expected behavior but this looks good!
In my vue3 project I was getting an infinite recursion doing (Android and iOS):
The infinite recursion was happening int the function
function scrollToIndex(index: number, animate = false)
added here.I just removed the function and it now works. I don't know why it was added. I couldn't access the function directly in the component with
listComponent.value.scrollToIndex( 0, true );
Works well on both Android and iOS.
Thanks!