-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EuiIcon]: Add appendIconComponentCache function (#3481)
* [EuiIcon]: * Add appendIconComponentCache function to complement the recently-added clearIconComponentCache function. Use case is to work around issues with the dynamic loading: if an icon is not in the cache, an attempt is made to fetch it dynamically, however some environments (such as using certain bundlers, like Parcel: parcel-bundler/parcel#112) do not transpile this functionality correctly. Being able to manually manipulate the icon cache allows a work around for this issue. * Fix appendIconComponentCache type, lint issues; add tests; add documentation * [EuiIcon]: Implement suggested change to new appendIconComponentCache function: One or more icon(s) are passed in as an object of iconKey (string): IconComponent * [EuiIcon]: * Define an empty no-op mock of the `appendIconComponentCache` function in icon.testenv.tsx * Update the main CHANGELOG.md with a summary of the new `appendIconComponentCache` EuiIcon feature. Co-authored-by: Chandler Prall <[email protected]>
- Loading branch information
1 parent
b87da10
commit 684bbee
Showing
5 changed files
with
81 additions
and
6 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
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