VM5715:1 thirdScriptError
the recycle-view correspond to this context is detached, pls create another RecycleContext;at api request success callback function
Error: the recycle-view correspond to this context is detached, pls create another RecycleContext
at RecycleContext.checkComp (http://127.0.0.1:55001/appservice/miniprogram_npm/miniprogram-recycle-view/index.js:485:15)
at RecycleContext.appendList (http://127.0.0.1:55001/appservice/miniprogram_npm/miniprogram-recycle-view/index.js:491:10)
at success (http://127.0.0.1:55001/appservice/pages/main/index.js:58:16)
at Function.o.(anonymous function) (http://127.0.0.1:55001/appservice/__dev__/WAService.js:1:1176040)
at http://127.0.0.1:55001/appservice/__dev__/WAService.js:1:107450
at C (http://127.0.0.1:55001/appservice/__dev__/WAService.js:1:441389)
at i.
at i.emit (http://127.0.0.1:55001/appservice/__dev__/WAService.js:1:488148)
at go (http://127.0.0.1:55001/appservice/__dev__/WAService.js:1:741913)
at http://127.0.0.1:55001/appservice/__dev__/WAService.js:1:743134
这个问题我也一直出现过,最终在调试时发现外层包了个<block wx:if="{{xxx}}"> .... </block>导致的,去掉那层判断就不会报错了
id没绑定对
page的json没有引入以下组件是也会出现这种情况:、
"usingComponents": {
"recycle-view": "miniprogram-recycle-view/recycle-view",
"recycle-item": "miniprogram-recycle-view/recycle-item"
}
我这边是在一个弹出的框里面用了recycle-view,在page的ready里面做会报这个错。但是在弹框显示出来后,在用就没有错误了。
所以这个应该是一个时间顺序问题。
这个问题解决了吗?
你解决了吗
麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)