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/7738/head
pushkin 5 years ago committed by GitHub
parent eedffd3d21
commit ee43c7d04f

@ -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