omi icon indicating copy to clipboard operation
omi copied to clipboard

omi-p 循环渲染自定义组件异常

Open kongxiangyan opened this issue 6 years ago • 0 comments

重现:基于官方的示例(TODO List)改造,如下:

<view>{[1,2].map((id) => {
          return (<my-counter id={poster} onChange={this.counterChange}></my-counter>)
})}</view>

问题:当循环渲染自定义组件的时候,counter update 行为出现异常,无论点击哪一项,都会出发最后一项的更新。

kongxiangyan avatar Sep 24 '19 09:09 kongxiangyan