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

Method fireError

core/src/components/nav/nav.tsx:597–606  ·  view source on GitHub ↗
(rejectReason: any, ti: TransitionInstruction)

Source from the content-addressed store, hash-verified

595 }
596
597 private fireError(rejectReason: any, ti: TransitionInstruction) {
598 if (ti.done) {
599 ti.done(false, false, rejectReason);
600 }
601 if (ti.reject && !this.destroyed) {
602 ti.reject(rejectReason);
603 } else {
604 ti.resolve!(false);
605 }
606 }
607
608 /**
609 * Consumes the next transition in the queue.

Callers 2

successMethod · 0.95
failedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected