react-spectrum
ef92cf12 - Prevent intl-messageformat error throw if `variable` values are undefined or null (#2544)

Commit
3 years ago
Prevent intl-messageformat error throw if `variable` values are undefined or null (#2544) * updating useMessageFormatter so null values in the variable object are changed to false this is so we dont get a error thrown due to the following code in intl-messageformat: https://github.com/formatjs/formatjs/blob/d031599f1309a9ccdc0e292791ef06f97d44cb81/packages/intl-messageformat/src/formatters.ts#L138-L139 * fix typescript * review comment
Author
Parents
Loading