Use immer
This commit is contained in:
parent
7f755d2a83
commit
4f72e164d7
33 changed files with 1236 additions and 1153 deletions
|
@ -20,7 +20,7 @@ export default class UserList extends PureComponent {
|
|||
return (
|
||||
<UserListItem
|
||||
key={key}
|
||||
user={users.get(index)}
|
||||
user={users[index]}
|
||||
style={style}
|
||||
onClick={onNickClick}
|
||||
/>
|
||||
|
@ -39,7 +39,7 @@ export default class UserList extends PureComponent {
|
|||
ref={this.listRef}
|
||||
width={200}
|
||||
height={height - 20}
|
||||
rowCount={users.size}
|
||||
rowCount={users.length}
|
||||
rowHeight={24}
|
||||
rowRenderer={this.renderUser}
|
||||
className="rvlist-users"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue