Merge pull request #6313 from vector-im/luke/perf-room-list-dnd

Implement a simple shouldComponentUpdate for DNDRoomTile
This commit is contained in:
Luke Barnard 2018-03-15 13:33:12 +00:00 committed by GitHub
commit 6dc7592389
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ import RoomTile from 'matrix-react-sdk/lib/components/views/rooms/RoomTile';
import classNames from 'classnames';
export default class DNDRoomTile extends React.Component {
export default class DNDRoomTile extends React.PureComponent {
constructor() {
super();
this.getClassName = this.getClassName.bind(this);