We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since this is a monorepo. Please specify which package this bug report is for.
react-intl 5.20.8
A clear and concise description of what the bug is.
There is confusion between
FormattedMessage
It seems it should be
children?(nodes: React.ReactNodeArray): React.ReactElement | null;
because otherwise if using it like so
<FormattedMessage id="..." defaultMessage="..." values={{...}} > {(...chunks) => { return chunks.map(chunk) => React.cloneElement(chunk, { key: index }); }} </FormattedMessage>
might produce an error Element type is invalid: expected a string ... but got undefined.
Please include a codesandbox URL if possible
Steps to reproduce the behavior:
A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
567a131
thanks for reporting, latest version should have the fix for this :)
Sorry, something went wrong.
@longlho Awesome, thanks! What is the version which includes the fix?
react-intl@5.20.9
No branches or pull requests
Which package?
Since this is a monorepo. Please specify which package this bug report is for.
react-intl 5.20.8
Describe the bug
A clear and concise description of what the bug is.
There is confusion between
FormattedMessage
render function.https://formatjs.io/docs/react-intl/components/#function-as-the-child
It seems it should be
because otherwise if using it like so
might produce an error Element type is invalid: expected a string ... but got undefined.
To Reproduce
Codesandbox URL
Please include a codesandbox URL if possible
Reproducible Steps/Repo
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: