From: sgpinkus Date: Fri, 23 Sep 2022 12:29:28 +0000 (+1000) Subject: docs: beforeRouteEnter next callback (#1560) X-Git-Tag: v4.1.6~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb73d608d29da156ef052314599ef9cea5c3e55a;p=thirdparty%2Fvuejs%2Frouter.git docs: beforeRouteEnter next callback (#1560) Co-authored-by: Eduardo San Martin Morote --- diff --git a/packages/docs/guide/advanced/data-fetching.md b/packages/docs/guide/advanced/data-fetching.md index c372f237..e0725abe 100644 --- a/packages/docs/guide/advanced/data-fetching.md +++ b/packages/docs/guide/advanced/data-fetching.md @@ -71,7 +71,7 @@ export default { ## Fetching Before Navigation With this approach we fetch the data before actually navigating to the new -route. We can perform the data fetching in the `beforeRouteEnter` guard in the incoming component, and only call `next` when the fetch is complete: +route. We can perform the data fetching in the `beforeRouteEnter` guard in the incoming component, and only call `next` when the fetch is complete. The callback passed to `next` will be called **after the component is mounted**: ```js export default {