Skip to content

Commit c9ebe95

Browse files
pushkinedummdidumm
authored andcommitted
Correct onDestroy behavior description (sveltejs#5590)
* Update 03-run-time.md * Update site/content/docs/03-run-time.md Co-authored-by: Simon H <[email protected]> Co-authored-by: Simon H <[email protected]>
1 parent 2a32457 commit c9ebe95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ onDestroy(callback: () => void)
102102

103103
---
104104

105-
Schedules a callback to run once the component is unmounted.
105+
Schedules a callback to run immediately before the component is unmounted.
106106

107107
Out of `onMount`, `beforeUpdate`, `afterUpdate` and `onDestroy`, this is the only one that runs inside a server-side component.
108108

0 commit comments

Comments
 (0)