diff --git a/doc/reference/component.md b/doc/reference/component.md index 96986b9b..c7560f18 100644 --- a/doc/reference/component.md +++ b/doc/reference/component.md @@ -352,7 +352,7 @@ cleaning operation, since the component may be destroyed before it has even been mounted. The `willDestroy` hook is useful in that situation, since it is always called. -The `onWillDestroy` hook is used to register a function that will be executed at +The `onWillUnmount` hook is used to register a function that will be executed at this moment: ```javascript