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

Method componentDidLoad

core/src/components/menu/menu.tsx:260–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258 }
259
260 async componentDidLoad() {
261 this.didLoad = true;
262
263 /**
264 * A menu inside of a split pane is assumed
265 * to be a side pane.
266 *
267 * When the menu is loaded it needs to
268 * see if it should be considered visible inside
269 * of the split pane. If the split pane is
270 * hidden then the menu should be too.
271 */
272 const splitPane = this.el.closest('ion-split-pane');
273 if (splitPane !== null) {
274 this.isPaneVisible = await splitPane.isVisible();
275 }
276
277 this.menuChanged();
278 this.updateState();
279 }
280
281 private menuChanged() {
282 /**

Callers

nothing calls this directly

Calls 3

menuChangedMethod · 0.95
updateStateMethod · 0.95
isVisibleMethod · 0.80

Tested by

no test coverage detected