mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 17:41:33 +03:00
chat: add key to outer component to prevent re-render
This commit is contained in:
parent
97bbac159c
commit
6b375051e3
@ -172,6 +172,7 @@ export class ChatWindow extends Component {
|
||||
/>
|
||||
{ messages.map((msg, i) => (
|
||||
<ChatMessage
|
||||
key={msg.uid}
|
||||
unreadRef={this.unreadReference}
|
||||
isLastUnread={
|
||||
props.unreadCount > 0 &&
|
||||
|
Loading…
Reference in New Issue
Block a user