From e98d08c55ddd787ca815eac864d10835caac5290 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 29 Dec 2020 10:17:54 +0100 Subject: [PATCH] chore: comments --- src/router.ts | 1 - src/types/index.ts | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/router.ts b/src/router.ts index d28df79c..c07bd55a 100644 --- a/src/router.ts +++ b/src/router.ts @@ -954,7 +954,6 @@ export function createRouter(options: RouterOptions): Router { // the error is already handled by router.push we just want to avoid // logging the error pushWithRedirect( - // TODO: should we force replace: true (error as NavigationRedirectError).to, toLocation // avoid an uncaught rejection, let push call triggerError diff --git a/src/types/index.ts b/src/types/index.ts index 26032a7b..561d449f 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -80,7 +80,9 @@ export interface RouteLocationOptions { */ force?: boolean /** - * State to save using the History API. This cannot contain any reactive values and some primitives like Symbols are forbidden. More info at TODO: link mdn + * State to save using the History API. This cannot contain any reactive + * values and some primitives like Symbols are forbidden. More info at + * https://developer.mozilla.org/en-US/docs/Web/API/History/state */ state?: HistoryState } -- 2.47.3