ionic-team / ionicons

Premium hand-crafted icons built by Ionic, for Ionic apps and web apps everywhere 🌎
http://ionicons.com
MIT License
17.4k stars 2.06k forks source link

fix(icon): mapping same icon does not warn #1279

Closed liamdebeasi closed 8 months ago

liamdebeasi commented 8 months ago

While working with Mike to test StarTrack, we discovered that mapping the same icon twice yields a warning when it should not.

Example

addIcons({ logoIonic });
addIcons({ logoIonic });

This can happen in an application where same icon is used in multiple places. In that case it's necessary to call addIcons since we don't know which place will be loaded first. In this case, no warning should be logged since these are the same icon references.