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