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

Method connectedCallback

src/components/icon/icon.tsx:88–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 }
87
88 connectedCallback() {
89 /**
90 * purposely do not return the promise here because loading
91 * the svg file should not hold up loading the app
92 * only load the svg if it's visible
93 */
94 this.waitUntilVisible(this.el, '50px', () => {
95 this.isVisible = true;
96 this.loadIcon();
97 });
98 }
99
100 /**
101 * Loads the icon after the component has finished rendering.

Callers

nothing calls this directly

Calls 2

waitUntilVisibleMethod · 0.95
loadIconMethod · 0.95

Tested by

no test coverage detected