Skip to content

Commit

Permalink
fix(react-intl): Remove values: {} from FormattedMessage defaultProps
Browse files Browse the repository at this point in the history
This normalizes the behavior between FormattedMessage and
intl.formatMessage
Fixes #1706
  • Loading branch information
longlho committed Jun 11, 2020
1 parent b6c720e commit f80648c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/react-intl/src/components/message.tsx
Expand Up @@ -59,9 +59,6 @@ class FormattedMessage<
>
> extends React.Component<Props<V>> {
static displayName = 'FormattedMessage';
static defaultProps = {
values: {},
};

shouldComponentUpdate(nextProps: Props<V>): boolean {
const {values, ...otherProps} = this.props;
Expand Down

0 comments on commit f80648c

Please sign in to comment.