When I try to load data from server via fetch()
in Nuxt it loads 2 times.
When page load data render and after some second it fetches again on the client.
I tried fetch()
in a simple About page.
<template>
<div id="app" class>
</div>
</template>
<script>
export default {
name: "App",
async fetch() {
console.log("fetching");
}
};
</script>
It log fetching 2 times in log.