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

Method routeChangeEvent

core/src/components/router/router.tsx:419–432  ·  view source on GitHub ↗
(toSegments: string[], redirectFromSegments: string[] | null)

Source from the content-addressed store, hash-verified

417 }
418
419 private routeChangeEvent(toSegments: string[], redirectFromSegments: string[] | null): RouterEventDetail | null {
420 const from = this.previousPath;
421 const to = generatePath(toSegments);
422 this.previousPath = to;
423 if (to === from) {
424 return null;
425 }
426 const redirectedFrom = redirectFromSegments ? generatePath(redirectFromSegments) : null;
427 return {
428 from,
429 redirectedFrom,
430 to,
431 };
432 }
433}

Callers 1

writeNavStateMethod · 0.95

Calls 1

generatePathFunction · 0.90

Tested by

no test coverage detected