Correct `onDestroy` behavior description (#5590)

* Update 03-run-time.md

* Update site/content/docs/03-run-time.md

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
pull/5696/head
pushkin 4 years ago committed by GitHub
parent 449fd1ca1f
commit 1fa46fde4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -102,7 +102,7 @@ onDestroy(callback: () => void)
--- ---
Schedules a callback to run once the component is unmounted. Schedules a callback to run immediately before the component is unmounted.
Out of `onMount`, `beforeUpdate`, `afterUpdate` and `onDestroy`, this is the only one that runs inside a server-side component. Out of `onMount`, `beforeUpdate`, `afterUpdate` and `onDestroy`, this is the only one that runs inside a server-side component.

Loading…
Cancel
Save