From: Eduardo San Martin Morote Date: Thu, 30 Jul 2020 21:06:53 +0000 (+0200) Subject: chore: add todo$ X-Git-Tag: v4.0.0-beta.5~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=267c9fa5192709d28c369ef1ed41121ac4b3f1e2;p=thirdparty%2Fvuejs%2Frouter.git chore: add todo$ --- diff --git a/src/navigationGuards.ts b/src/navigationGuards.ts index 2f09b2cf..d618f34c 100644 --- a/src/navigationGuards.ts +++ b/src/navigationGuards.ts @@ -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 ) )