mirror of https://github.com/sveltejs/svelte
parent
26d1853e88
commit
42b7683b7e
@ -1,8 +1,8 @@
|
||||
|
||||
<script>
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
onMount(() => {
|
||||
return () => console.log('destroy');
|
||||
import { onDestroy } from 'svelte';
|
||||
|
||||
onDestroy(() => {
|
||||
console.log('destroy');
|
||||
});
|
||||
</script>
|
||||
|
||||
Loading…
Reference in new issue