MCPcopy
hub / github.com/ionic-team/ionic-framework / componentOnReady

Function componentOnReady

core/src/utils/helpers.ts:73–80  ·  view source on GitHub ↗
(el: any, callback: any)

Source from the content-addressed store, hash-verified

71 * el.componentOnReady yourself.
72 */
73export const componentOnReady = (el: any, callback: any) => {
74 if (el.componentOnReady) {
75 // eslint-disable-next-line custom-rules/no-component-on-ready-method
76 el.componentOnReady().then((resolvedEl: any) => callback(resolvedEl));
77 } else {
78 raf(() => callback(el));
79 }
80};
81
82/**
83 * This functions checks if a Stencil component is using

Callers 15

componentWillLoadMethod · 0.90
getInputElementMethod · 0.90
getInputElementMethod · 0.90
getScrollElementMethod · 0.90
getBackgroundElementMethod · 0.90
connectedCallbackMethod · 0.90
shouldUseNativeRefresherFunction · 0.90
writeNavStateFunction · 0.90
getInputElementMethod · 0.90
attachComponentFunction · 0.90
attachViewToDomFunction · 0.90
createOverlayFunction · 0.90

Calls 3

rafFunction · 0.70
componentOnReadyMethod · 0.65
callbackFunction · 0.50

Tested by

no test coverage detected