fix(router): Update types for TypeScript nullability support
This reverts commit ea8ffc9841
.
This commit is contained in:

committed by
Tobias Bosch

parent
ec028b8109
commit
bc431888f3
@ -111,7 +111,7 @@ export function isNavigationCancelingError(error: Error) {
|
||||
// Matches the route configuration (`route`) against the actual URL (`segments`).
|
||||
export function defaultUrlMatcher(
|
||||
segments: UrlSegment[], segmentGroup: UrlSegmentGroup, route: Route): UrlMatchResult|null {
|
||||
const parts = route.path.split('/');
|
||||
const parts = route.path !.split('/');
|
||||
|
||||
if (parts.length > segments.length) {
|
||||
// The actual URL is shorter than the config, no match
|
||||
|
Reference in New Issue
Block a user