From: Eduardo San Martin Morote Date: Tue, 29 Dec 2020 09:17:54 +0000 (+0100) Subject: chore: comments X-Git-Tag: v4.0.3~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e98d08c55ddd787ca815eac864d10835caac5290;p=thirdparty%2Fvuejs%2Frouter.git chore: comments --- 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 }