title: Vue-Router Should I use return when using next() in beforeEach?
body: <p>I am currently using the following code as a hook in each of my routes:</p>
  
  <pre><code>router.beforeEach(async(to, from, next) =&gt; {
    /**
     *
     * @type {boolean}
     */
    const requiresAuth = to.matched.some((record) =&gt; record.meta.requiresAuth);
  
    if (requiresAuth) {
      if (!isAuthenticated()) {
        next('/login');
      } else {
        next();
      }
    } else if (isAuthenticated()) {
      next('/home');
    } else {
      next();
    }
  });
  </code></pre>
  
  <p>My question as the title indicates is if I should use <code>return</code> after calling the <code>next()</code> method .. something like this:</p>
  
  <pre><code>...
  if (requiresAuth) {
      if (!isAuthenticated()) {
        next('/login');
        return; &lt;--- should I use return here?
      } else {
        next();
        return; &lt;--- should I use return here?
      }
  }
  </code></pre>
  
  <p>I am confused on whether it is necessary to use it or not .. could you clarify my doubt please ..</p>
  
  <p>Thank you very much in advance</p>