You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(react-intl): update type of the <FormattedNumber> value prop (#4954)
It was hard-coded as `number`. The `formatNumber()` function has been
updated to accept [all values that `Intl.NumberFormat.format()`
accepts](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/format#number),
so this makes the component match the underlying function.
The component already works correctly if you pass (for example) a
numeric string as the `value` prop. This updates the type checking to
match the reality of what the component supports.
0 commit comments