clarify onMount with async

pull/5053/head
Antony Jones 5 years ago
parent 1644f207b1
commit 83084f9d1c

@ -50,6 +50,8 @@ If a function is returned from `onMount`, it will be called when the component i
</script> </script>
``` ```
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` #### `beforeUpdate`
```js ```js

Loading…
Cancel
Save