Svelte Lifecycle Method - onDestroy

In Svelte, a component's onDestroy lifecycle method is called before the component is removed from the DOM. For example, if you have a component that is wrapped within an {#if} block and it is currently rendered to the DOM, then when this block's conditional statement evaluates to false, the…

Responses (2)

compared to the
Avatar Image
Franchesca Wright6 years ago
Avatar Image
Ken Chan6 years ago
Clap
0|0|
Clap
0|0