MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / disconnectedCallback

Method disconnectedCallback

core/src/components/nav/nav.tsx:149–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147 }
148
149 disconnectedCallback() {
150 for (const view of this.views) {
151 lifecycle(view.element!, LIFECYCLE_WILL_UNLOAD);
152 view._destroy();
153 }
154
155 // Release swipe back gesture and transition.
156 if (this.gesture) {
157 this.gesture.destroy();
158 this.gesture = undefined;
159 }
160 this.transInstr.length = 0;
161 this.views.length = 0;
162 this.destroyed = true;
163 }
164
165 /**
166 * Push a new component onto the current navigation stack. Pass any additional

Callers

nothing calls this directly

Calls 3

lifecycleFunction · 0.90
_destroyMethod · 0.80
destroyMethod · 0.65

Tested by

no test coverage detected