Update component.md

Replace `onWillUnmount` by `onWillDestroy` in the said paragraph
This commit is contained in:
Steve Van Essche
2025-03-13 14:52:24 +01:00
committed by Sam Degueldre
parent a9f29c4caa
commit 6891ad2773
+1 -1
View File
@@ -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 `onWillUnmount` hook is used to register a function that will be executed at
The `onWillDestroy` hook is used to register a function that will be executed at
this moment:
```javascript