Skip to content

Commit 1fa46fd

Browse files
pushkinedummdidumm
andauthored
Correct onDestroy behavior description (#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 449fd1c commit 1fa46fd

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)