Fixes to performance. Moved volume out to new component to optimize rerenders.
This commit is contained in:
@@ -66,7 +66,17 @@ const mapDispatchToProps = (dispatch) =>
|
||||
|
||||
const VideoWindowContainer = connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
mapDispatchToProps,
|
||||
null,
|
||||
{
|
||||
areStatesEqual : (next, prev) =>
|
||||
{
|
||||
return (
|
||||
prev.consumers[prev.room.windowConsumer] ===
|
||||
next.consumers[next.room.windowConsumer]
|
||||
);
|
||||
}
|
||||
}
|
||||
)(VideoWindow);
|
||||
|
||||
export default VideoWindowContainer;
|
||||
|
||||
Reference in New Issue
Block a user