onUnmount
onUnmount is for Elements that need to run some cleanup tasks before these are removed from the document.
# Arguments
name | type | description |
---|---|---|
fn | fn | function to run just before the Element is removed from the document |
# Snippet
# Test
Show when the elements are about to be removed from the document