andrewdavey / andrewdavey/immutable-devtools
Typo in renderIterableBody?
- 主要语言
- JavaScript
- 星标
- 671
- 派生
- 32
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi, I was reading through the code of this library, and read the `renderIterableBody` function. Here is the source for it:
```javascript
const renderIterableBody = (collection, mapper, options = {}) => {
if (options.sorted) {
collection = collection.sortBy((value, key) => key);
}
const children = collection
.map(mapper)
.toList();
const jsList = []
// Can't just call toJS because that will also call toJS on children inside the list
children.forEach(child => jsList.push(child))
return [ 'ol', listStyle, ...children ];
}
```
It seems that the author carefully crafted the `jsList` list, but then forgot to use it, and mistakenly used `children` instead.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。