Skip to content

how can a component destroy itself ? #13498

Closed Answered by brunnerh
Cergoo asked this question in Q&A
Discussion options

You must be logged in to vote

Most components are created via markup so Svelte handles their creation/destruction.
It generally would not make much sense if components can just disappear on their own, it would create a mismatch between markup and what is actually there.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Cergoo
Comment options

@brunnerh
Comment options

Answer selected by Cergoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants