1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-06-27 15:01:53 +03:00

Don't re-render after each /sync call

This commit is contained in:
Kegan Dougal
2015-12-14 11:32:08 +00:00
parent 5e02522685
commit 0f62388d3c

View File

@ -145,7 +145,10 @@ module.exports = React.createClass({
}
},
onSyncStateChange: function(state) {
onSyncStateChange: function(state, prevState) {
if (state === "SYNCING" && prevState === "SYNCING") {
return;
}
this.setState({
syncState: state
});