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.
onMount
beforeUpdate
afterUpdate
onDestroy
https://svelte.dev/docs/svelte#ondestroy
Schedules a callback to run immediately before the component is unmounted.
Out of
onMount
,beforeUpdate
,afterUpdate
andonDestroy
, this is the only one that runs inside a server-side component.https://svelte.dev/docs/svelte#ondestroy