taro list render bug
列表渲染
https://taro-docs.jd.com/taro/docs/list.html
not support jsx map
垃圾微信
const timestamp = new Date().getTime();
const tags = topicList.map((obj, i) => <Text className="select-ticket-card-tag" key={obj.name} taroKey={i}>{obj.name}</Text>);
// const tags = topicList.map((obj, i) => <Text className="select-ticket-card-tag" key={obj.name} taroKey={timestamp + i}>{obj.name}</Text>);
// const tags = topicList.map(({name, }, i) => <Text className="select-ticket-card-tag" key={name} taroKey={name + i}>{name}</Text>);
OK
HTML5 dataset
const tags = topicList.map((obj, i) => <Text className="select-ticket-card-tag" data-key={obj.name} key={obj.name} taroKey={i}>{obj.name}</Text>);
Object pattern 解构 bug
Error: JSX map 循环参数暂时不支持使用 Object pattern 解构。