Concept Flow - Action update and destroy
Component mounts
Action called
Action returns object with update and destroy
update called on prop change
destroy called on component unmount
Cleanup done
When a Svelte component mounts, the action runs and returns update and destroy functions. Update runs on prop changes, destroy runs on unmount.