-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(react-intl): merge chunks in FormatXMLElementFn
BREAKING CHANGE: This turns rich text formatting callback function to non-variadic. So `(...chunks) => React.ReactNode` becomes `(chunks) => React.ReactNode`. This solves a couple of issues: 1. We receive feedback that variadic callback fn is not ergonomic 2. This solves the missing key issue when we render rich text 3. This allows us to utilize extra param to distinguish when 2 React element are exactly the same except for their indices, e.g `<b>one</b> and <b>one</b>` and you want to render them differently fixes #1623
- Loading branch information
Vaclav Novotny
authored and
Long Ho
committed
Jul 2, 2020
1 parent
2be4cfb
commit 1b5892f
Showing
4 changed files
with
89 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters