From f80648cc112fc2312c31a84b145f6c0556e76cad Mon Sep 17 00:00:00 2001 From: Long Ho Date: Wed, 10 Jun 2020 23:37:51 -0400 Subject: [PATCH] fix(react-intl): Remove `values: {}` from FormattedMessage defaultProps This normalizes the behavior between FormattedMessage and intl.formatMessage Fixes #1706 --- packages/react-intl/src/components/message.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/react-intl/src/components/message.tsx b/packages/react-intl/src/components/message.tsx index 4530db5ad4..00b395ec59 100644 --- a/packages/react-intl/src/components/message.tsx +++ b/packages/react-intl/src/components/message.tsx @@ -59,9 +59,6 @@ class FormattedMessage< > > extends React.Component> { static displayName = 'FormattedMessage'; - static defaultProps = { - values: {}, - }; shouldComponentUpdate(nextProps: Props): boolean { const {values, ...otherProps} = this.props;