You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I"m trying to use scrollama to make a dynamic infinite scoll list by tracking the index in the handler. Problem is when I update my looped array feedPosts, scrollama only works with the initial array of objects. So to get around that I rerendered scrollama by updating :key="componentKey" to + 1 after array is updated it rerenders scrollama and new data is working with it. Unfortunately it also resets the scroll to the top and the scrolloma flashes in the process.
The question is it possible to update scrollama dynamically without rerender? Thanks!!
It actually did work I must have had two many hoots. But I did realize I've been trying to replace an entire array with an updated one when I should push one item onto the array at a time. Thanks so much for the help. Kisses
I"m trying to use scrollama to make a dynamic infinite scoll list by tracking the index in the handler. Problem is when I update my looped array feedPosts, scrollama only works with the initial array of objects. So to get around that I rerendered scrollama by updating :key="componentKey" to + 1 after array is updated it rerenders scrollama and new data is working with it. Unfortunately it also resets the scroll to the top and the scrolloma flashes in the process.
The question is it possible to update scrollama dynamically without rerender? Thanks!!
`
<Scrollama :debug="true" :offset="0.8" v-if="feedPosts.length" @step-enter="handleScroll" :once="true" class="container" :key="componentKey" >
The text was updated successfully, but these errors were encountered: