About better-scroll performance issues

in the process of using better-scroll, pull up and load the data, and then add the data to list every time, recalculate the height of list, and then scroll.refresh, but when there is a lot of data, this process will be relatively slow, resulting in the data of list has been obtained, but the height of list has not yet been redrawn, do you have any good solutions?

Jan.28,2022

you need to listen to data

watch: {

       data(val){
           this.$nextTick(() => {
                   this.scroll.refresh()
                   this.scroll.finishPullUp()
           })
       }

}

Menu