matrix-react-sdk
663dc3e5 - Don't re-render matrixchat unnecessarily

Commit
8 years ago
Don't re-render matrixchat unnecessarily ...on room switch. We were setting most of the state in viewRoom, but getting the current room ID from the RoomViewStore, but this meant we did one setState from the RoomViewStore updating, re-rendered and then setState again in viewRoom causing another render. This just sets the room ID in viewRoom.
Author
Parents
Loading