From ec0bafaa8e5ca616dc7f793b2b3cc20dd3876246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Sat, 4 May 2019 13:50:43 +0200 Subject: [PATCH] [DOC] component: remove misleading order on willUnmount Some hooks call order are clearly defined: `[willX]` hooks are called first on parent, then on children, and `[Xed]` are called in the reverse order: first children, then parent. This is also true for `willUnmount`: first on parent, then on children. --- doc/component.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/component.md b/doc/component.md index dc63e293..cba5b9c4 100644 --- a/doc/component.md +++ b/doc/component.md @@ -312,5 +312,4 @@ the DOM. This is a good place to remove some listeners, for example. } ``` -This is the opposite method of `mounted`. The `willUnmount` method will be -called in reverse order: first the children, then the parents. +This is the opposite method of `mounted`.