]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: add todo$
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 30 Jul 2020 21:06:53 +0000 (23:06 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 30 Jul 2020 21:06:53 +0000 (23:06 +0200)
src/navigationGuards.ts

index 2f09b2cfafa14d911c168d14e5f98d5eaf28d5ab..d618f34ce2509387de172c9b68564ce242ac5624 100644 (file)
@@ -157,6 +157,9 @@ export function guardToPromiseFn(
           record && record.instances[name!],
           to,
           from,
+          // TODO: could wrap in dev to check if the guard returns before
+          // calling next with 3 or more arguments. This would help people
+          // forgetting to remove the `next` argument
           __DEV__ ? canOnlyBeCalledOnce(next, to, from) : next
         )
       )