Skip to content

Commit 1126acd

Browse files
committed
docs: some lifecycle
Close #2516
1 parent e48d1c3 commit 1126acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ A working demo of this example can be found [here](https://codesandbox.io/s/rout
5656
title="Learn how to react to param changes"
5757
/>
5858

59-
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**.
59+
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**.
6060

6161
To react to params changes in the same component, you can simply watch anything on the `route` object, in this scenario, the `route.params`:
6262

0 commit comments

Comments
 (0)