From 83084f9d1c49b715b1b20ec536689685e888a167 Mon Sep 17 00:00:00 2001 From: Antony Jones Date: Tue, 23 Jun 2020 11:11:13 +0100 Subject: [PATCH] clarify onMount with async --- site/content/docs/03-run-time.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site/content/docs/03-run-time.md b/site/content/docs/03-run-time.md index 460c393e7e..75fb03fbe8 100644 --- a/site/content/docs/03-run-time.md +++ b/site/content/docs/03-run-time.md @@ -50,6 +50,8 @@ If a function is returned from `onMount`, it will be called when the component i ``` +Note that returning a function is only available for *synchronous* onMount functions. If an async function or promise is passed to `onMount`, the function returned will **not** be called when the component is unmounted. + #### `beforeUpdate` ```js