From 1fa46fde4f17fd3e9872339b38243e1d220e610c Mon Sep 17 00:00:00 2001 From: pushkin Date: Thu, 19 Nov 2020 00:30:47 +0100 Subject: [PATCH] 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> --- site/content/docs/03-run-time.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/docs/03-run-time.md b/site/content/docs/03-run-time.md index 846e09d7748c..b35af9383878 100644 --- a/site/content/docs/03-run-time.md +++ b/site/content/docs/03-run-time.md @@ -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.