You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2019/04/30 12:21:06 UTC

[GitHub] [incubator-weex] DevWhan opened a new issue #2388: 对于组件, 使用v-for时, 是否需要写key?

DevWhan opened a new issue #2388: 对于<cell>组件, 使用v-for时, 是否需要写key?
URL: https://github.com/apache/incubator-weex/issues/2388
 
 
   在Android0.18.0上, 写了key=index 会造成cell数据错误(随机缺少cell),iOS未发现
   查阅了iOS(0.19.0)源码中的<cell>组件 未发现有关"key"的使用
   在官方文档也没有找到这方面的说明
   请问只针对于Android和iOS来说, 在<cell>组件使用v-for时 是否有必要写key, 其中的缓存机制是怎样的? 如果可以麻烦告知下相关原理, 感谢

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services