(toSegments: string[], redirectFromSegments: string[] | null)
| 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 | } |
no test coverage detected