]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: some lifecycle
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 23 Jun 2025 12:12:18 +0000 (14:12 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 23 Jun 2025 12:12:18 +0000 (14:12 +0200)
Close #2516

packages/docs/guide/essentials/dynamic-matching.md

index 9c9fd0b947e87b3dc4e4538944fcaddd02dd51e4..6c221b5189728095ae1233e2803d6b82ca910826 100644 (file)
@@ -56,7 +56,7 @@ A working demo of this example can be found [here](https://codesandbox.io/s/rout
   title="Learn how to react to param changes"
 />
 
-One thing to note when using routes with params is that when the user navigates from `/users/johnny` to `/users/jolyne`, **the same component instance will be reused**. Since both routes render the same component, this is more efficient than destroying the old instance and then creating a new one. **However, this also means that the lifecycle hooks of the component will not be called**.
+One thing to note when using routes with params is that when the user navigates from `/users/johnny` to `/users/jolyne`, **the same component instance will be reused**. Since both routes render the same component, this is more efficient than destroying the old instance and then creating a new one. **However, this also means that some lifecycle hooks of the component will not be called**.
 
 To react to params changes in the same component, you can simply watch anything on the `route` object, in this scenario, the `route.params`: