From f6c6cd007535137e1b692eecb23735431882ef5b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 5 Nov 2018 13:09:30 +0300 Subject: Memoizing Contact, Icon and Message --- vnext/src/components/Message.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'vnext/src/components/Message.js') diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js index 1ecbf996..f303d5eb 100644 --- a/vnext/src/components/Message.js +++ b/vnext/src/components/Message.js @@ -9,7 +9,7 @@ import Avatar from './Avatar'; import { format } from '../utils/embed'; -export default function Message({ data, visitor, children, ...rest }) { +const Message = React.memo(({ data, visitor, children, ...rest }) => { return (