mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Put speed holes in the code
We can make read receipts more efficient (and avoid double-animation) by using `PureComponent` which no-ops useless updates for us.
This commit is contained in:
parent
b3142d6138
commit
76ad93b937
@ -32,7 +32,7 @@ try {
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
export default class ReadReceiptMarker extends React.Component {
|
||||
export default class ReadReceiptMarker extends React.PureComponent {
|
||||
static propTypes = {
|
||||
// the RoomMember to show the RR for
|
||||
member: PropTypes.object,
|
||||
|
Loading…
Reference in New Issue
Block a user