zsmjhtn commented on issue #2388: 对于<cell>组件, 使用v-for时, 是否需要写key?
URL: https://github.com/apache/incubator-weex/issues/2388#issuecomment-489570717
 
 
   我们团队使用weex2年多,偶现 线上页面 元素缺失不展示的问题,列表出现率更高。一直没找到原因,昨天线上遇到一个 离奇的 
布局不展示问题,可以能稳定的重现 一个没有被 v-if 控制的布局,居然会受到影响而消失!
   我觉得这和之前我们线上偶现的元素不展示问题、DevWhan提到的Android写了key=index 
会造成cell数据错误(随机缺少cell)的问题、以及我稳定复现提出的issue,这3者有强烈关系。
   ios在0.18未出现,但之前我们用0.1版本时,ios也会偶现部分元素不展示问题。
   猜测是 js传递到安卓原生,原生构建虚拟Dom树 至 虚拟DOM树 渲染为 原生布局,这个过程中出了问题,导致元素丢失。
   不知道是 构建虚拟Dom树时丢失的?还是render时机丢失的?
   麻烦官方人员抽点时间,试试我 issue中的 demo,解释下这种现象的原因。
   谢谢了🙏

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to