Pass as separate arguments to constructor

This commit is contained in:
RMidhunSuresh 2022-02-22 13:15:30 +05:30
parent 4c3e0a6ff0
commit 5d42f372f6
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ export function createNavigation(): Navigation<SegmentType> {
}
export function createRouter({history, navigation}) {
return new URLRouter({history, navigation, stringifyPath, parseUrlPath});
return new URLRouter(history, navigation, parseUrlPath, stringifyPath);
}
function allowsChild(parent: {type: string, value: any} | undefined, child: {type: string, value: any}): boolean {