]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: beforeRouteEnter next callback (#1560)
authorsgpinkus <sgpinkus@gmail.com>
Fri, 23 Sep 2022 12:29:28 +0000 (22:29 +1000)
committerGitHub <noreply@github.com>
Fri, 23 Sep 2022 12:29:28 +0000 (14:29 +0200)
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
packages/docs/guide/advanced/data-fetching.md

index c372f23709ba7168f7ac04c080d9443ffae31ae6..e0725abeb49e8d8c87787f818a21d7da51e9da50 100644 (file)
@@ -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 {