diff --git a/ts/index.ts b/ts/index.ts index b36ca4c..4d4bce3 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -86,7 +86,7 @@ export class SmartRouter { for (const wantedRoute of wantedRoutes) { const routeResult = wantedRoute.matchFunction(currentLocation); - await wantedRoute.handler(routeResult.valueOf() as IRouteInfo); + wantedRoute.handler(routeResult.valueOf() as IRouteInfo); // not waiting here } } }