We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
** 请描述您在使用期间遇到的疑问 ** hbuilderX:4.45,微信小程序
我的业务场景:使用虚拟列表滚动分页,需要从接口轮询更新排序 具体操作:v-model绑定数据,通过轮询,修改了v-model绑定的数据后,看源码会触发updateVirtualListRender方法,但内部的nextTick回调没有被调用,是uni-app的bug?理应是每次都会被调用的吧
updateVirtualListRender
初步猜测是uni-app的bug,
简单实现,修改示例代码virtual-list-no-inner-demo.vue:
virtual-list-no-inner-demo.vue
添加如下方法:
update() { setTimeout(() => { console.log('更新了') this.totalData = [...this.totalData] this.update() }, 5000) }
简单调用:
添加日志:
微信小程序实际表现:😦???nextTick回调怎么没有被调用
H5表现:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
** 请描述您在使用期间遇到的疑问 **
hbuilderX:4.45,微信小程序
我的业务场景:使用虚拟列表滚动分页,需要从接口轮询更新排序
具体操作:v-model绑定数据,通过轮询,修改了v-model绑定的数据后,看源码会触发
updateVirtualListRender
方法,但内部的nextTick回调没有被调用,是uni-app的bug?理应是每次都会被调用的吧初步猜测是uni-app的bug,
简单实现,修改示例代码
virtual-list-no-inner-demo.vue
:添加如下方法:
简单调用:
添加日志:
微信小程序实际表现:😦???nextTick回调怎么没有被调用
H5表现:
The text was updated successfully, but these errors were encountered: