chore: mark todo; illegal return

This commit is contained in:
Ayo 2023-10-10 17:54:55 +02:00
parent 9608cb6f56
commit ccf24fb6d0

View file

@ -6,7 +6,7 @@
<title>Hello Nitro</title>
<script server:setup>
const name = "AYOs";
return { name };
return { name }; // TODO: this is illegal! figure out a way to build an object in the route intercept
</script>
</head>
<body>
@ -16,11 +16,11 @@
</div>
<span>some text</span>
<clickable-text></clickable-text>
<!-- <script>
<script>
const helloWorld = document.querySelector("hello-world");
setTimeout(() => {
helloWorld.setAttribute("name", "Nitro");
}, 2000);
</script> -->
</script>
</body>
</html>