Replace `onMount` with `onDestroy` in _text.md_

pull/3221/head
Crafted Systems 6 years ago committed by GitHub
parent 2b79a2269d
commit 7b4600e437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,4 +25,4 @@ We'll add an `onMount` handler that loads some data over the network:
Lifecycle functions must be called while the component is initialising so that the callback is bound to the component instance — not (say) in a `setTimeout`. Lifecycle functions must be called while the component is initialising so that the callback is bound to the component instance — not (say) in a `setTimeout`.
If the `onMount` callback returns a function, that function will be called when the component is destroyed. If the `onDestroy` callback returns a function, that function will be called when the component is destroyed.

Loading…
Cancel
Save