MCPcopy Index your code
hub / github.com/ionic-team/ionicons / componentDidLoad

Method componentDidLoad

src/components/icon/icon.tsx:103–113  ·  view source on GitHub ↗

* Loads the icon after the component has finished rendering.

()

Source from the content-addressed store, hash-verified

101 * Loads the icon after the component has finished rendering.
102 */
103 componentDidLoad() {
104 /**
105 * Addresses an Angular issue where property values are assigned after the 'connectedCallback' but prior to the registration of watchers.
106 * This enhancement ensures the loading of an icon when the component has finished rendering and the icon has yet to apply the SVG data.
107 * This modification pertains to the usage of Angular's binding syntax:
108 * `<ion-icon [name]="myIconName"></ion-icon>`
109 */
110 if (!this.didLoadIcon) {
111 this.loadIcon();
112 }
113 }
114
115 /**
116 * Disconnect the IntersectionObserver.

Callers

nothing calls this directly

Calls 1

loadIconMethod · 0.95

Tested by

no test coverage detected