<script>
	import { onMount } from 'svelte';

	export let foo = 'bar';

	onMount(() => {
		alert(JSON.stringify(data()));
	});
</script>