docs: clarify onMount with non-synchronous handlers (#5053)

pull/5055/head
Antony Jones 4 years ago committed by GitHub
parent 6e2b81663c
commit dc73b735ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -50,6 +50,8 @@ If a function is returned from `onMount`, it will be called when the component i
</script>
```
> This behaviour will only work when the function passed to `onMount` *synchronously* returns a value. `async` functions always return a `Promise`, and as such cannot *synchronously* return a function.
#### `beforeUpdate`
```js

Loading…
Cancel
Save