docs: remove duplicate `onDestroy` description (#15274)

pull/15276/head
Kid 7 months ago committed by GitHub
parent a3e49b6110
commit 5fe0272868
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -45,8 +45,6 @@ If a function is returned from `onMount`, it will be called when the component i
## `onDestroy`
> EXPORT_SNIPPET: svelte#onDestroy
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.

Loading…
Cancel
Save