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

Method getPreviousSync

core/src/components/nav/nav.tsx:502–509  ·  view source on GitHub ↗
(view = this.getActiveSync())

Source from the content-addressed store, hash-verified

500 }
501
502 private getPreviousSync(view = this.getActiveSync()): ViewController | undefined {
503 if (!view) {
504 return undefined;
505 }
506 const views = this.views;
507 const index = views.indexOf(view);
508 return index > 0 ? views[index - 1] : undefined;
509 }
510
511 /**
512 * Adds a navigation stack change to the queue and schedules it to run.

Callers 2

getPreviousMethod · 0.95
canGoBackSyncMethod · 0.95

Calls 1

getActiveSyncMethod · 0.95

Tested by

no test coverage detected