From 32e4565131df6ff60923c9ba38efaf3265802fa9 Mon Sep 17 00:00:00 2001 From: Rodolpho Cammarosano Date: Fri, 29 Sep 2023 22:22:32 +0200 Subject: [PATCH] [FIX] doc: onWillDestroy mistasken for onWillUnmount --- doc/reference/component.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/reference/component.md b/doc/reference/component.md index 0fed57ae..419f6933 100644 --- a/doc/reference/component.md +++ b/doc/reference/component.md @@ -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