MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / lifecycle

Function lifecycle

core/src/utils/transition/index.ts:220–228  ·  view source on GitHub ↗
(el: HTMLElement | undefined, eventName: string)

Source from the content-addressed store, hash-verified

218};
219
220export const lifecycle = (el: HTMLElement | undefined, eventName: string) => {
221 if (el) {
222 const ev = new CustomEvent(eventName, {
223 bubbles: false,
224 cancelable: false,
225 });
226 el.dispatchEvent(ev);
227 }
228};
229
230/**
231 * Wait two request animation frame loops.

Callers 5

disconnectedCallbackMethod · 0.90
postViewInitMethod · 0.90
unmountInactiveViewsMethod · 0.90
fireWillEventsFunction · 0.85
fireDidEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected