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

Function waitUntilNavNode

core/src/components/router/utils/dom.ts:205–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

203};
204
205export const waitUntilNavNode = (): Promise<void> => {
206 if (searchNavNode(document.body)) {
207 return Promise.resolve();
208 }
209 return new Promise((resolve) => {
210 window.addEventListener('ionNavWillLoad', () => resolve(), { once: true });
211 });
212};
213
214/** Selector for all the outlets supported by the router. */
215const OUTLET_SELECTOR = ':not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet';

Callers 1

componentWillLoadMethod · 0.90

Calls 3

searchNavNodeFunction · 0.85
resolveFunction · 0.85
addEventListenerMethod · 0.65

Tested by

no test coverage detected