Skip to content

Commit

Permalink
Correct onDestroy behavior description (#5590)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
pushkine and dummdidumm authored Nov 18, 2020
1 parent 449fd1c commit 1fa46fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/content/docs/03-run-time.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 1fa46fd

Please sign in to comment.