I want to get some data from HTTP API and display it on the page:
<template>
<div>
Kyiv Time: {{ timeData.utc_datetime }}
</div>
</template>
<script setup>
const { data: timeData } = await useFetch('https://worldtimeapi.org/api/timezone/Europe/Kiev')
</script>
Sometimes page loads correctly, and sometimes I got an error Cannot read properties of null (reading 'utc_datetime') in the template. So await doesn't really wait for the HTTP request.
How can I wait for HTTP request during SSR (and client-side as well)?
My nuxt config is empty, here the project sources