]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: comments
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 29 Dec 2020 09:17:54 +0000 (10:17 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 29 Dec 2020 09:17:54 +0000 (10:17 +0100)
src/router.ts
src/types/index.ts

index d28df79c03129936a382c2a158c42c3bae846dc6..c07bd55ab5b345e8745052adafef1e00e8c99862 100644 (file)
@@ -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
index 26032a7ba6de1a23c088e19047693c0c23e56cb2..561d449ff1d04503f9d19858c63b97ccb66b7819 100644 (file)
@@ -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
 }