Fixes to performance. Moved volume out to new component to optimize rerenders.

This commit is contained in:
Håvar Aambø Fosstveit
2019-04-04 00:03:57 +02:00
parent e84af94544
commit abca6645a9
16 changed files with 359 additions and 200 deletions
+11 -1
View File
@@ -215,5 +215,15 @@ const mapDispatchToProps = {
export default withRoomContext(connect(
mapStateToProps,
mapDispatchToProps
mapDispatchToProps,
null,
{
areStatesEqual : (next, prev) =>
{
return (
prev.me === next.me &&
prev.room === next.room
);
}
}
)(withStyles(styles)(Settings)));