File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -106,11 +106,11 @@ const Foo = {
106
106
// because it has not been created yet when this guard is called!
107
107
},
108
108
beforeRouteUpdate (to , from , next ) {
109
- // called when the route that renders this component has changed,
110
- // but this component is reused in the new route.
109
+ // called when the route that renders this component has changed.
110
+ // This component being reused (by using an explicit `key`) in the new route or not doesn't change anything .
111
111
// For example, for a route with dynamic params `/foo/:id`, when we
112
112
// navigate between `/foo/1` and `/foo/2`, the same `Foo` component instance
113
- // will be reused, and this hook will be called when that happens.
113
+ // will be reused (unless you provided a `key` to `<router-view>`) , and this hook will be called when that happens.
114
114
// has access to `this` component instance.
115
115
},
116
116
beforeRouteLeave (to , from , next ) {
You can’t perform that action at this time.
0 commit comments