Concept Flow - onDestroy
Component Mounts
Setup onDestroy callback
Component Active
Component Unmounts
onDestroy callback runs
Cleanup done
This flow shows how Svelte runs the onDestroy callback when a component is removed from the page to clean up resources.