[FIX] doc: onWillDestroy mistasken for onWillUnmount

This commit is contained in:
Rodolpho Cammarosano
2023-09-29 22:22:32 +02:00
committed by Sam Degueldre
parent 9b9c15e4a9
commit 32e4565131
+1 -1
View File
@@ -357,7 +357,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