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

Method componentDidLoad

core/src/components/modal/modal.tsx:524–544  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

522 }
523
524 componentDidLoad() {
525 /**
526 * If modal was rendered with isOpen="true"
527 * then we should open modal immediately.
528 */
529 if (this.isOpen === true) {
530 raf(() => this.present());
531 }
532 this.breakpointsChanged(this.breakpoints);
533
534 /**
535 * When binding values in frameworks such as Angular
536 * it is possible for the value to be set after the Web Component
537 * initializes but before the value watcher is set up in Stencil.
538 * As a result, the watcher callback may not be fired.
539 * We work around this by manually calling the watcher
540 * callback when the component has loaded and the watcher
541 * is configured.
542 */
543 this.triggerChanged();
544 }
545
546 /**
547 * Determines whether or not an overlay

Callers

nothing calls this directly

Calls 4

presentMethod · 0.95
breakpointsChangedMethod · 0.95
triggerChangedMethod · 0.95
rafFunction · 0.90

Tested by

no test coverage detected