Open ozguruysal opened 5 years ago
I try like this, but don't show any log
<template>
<div>
<h1>Home</h1>
</div>
</template>
<script>
export default {
name: "Home",
serverPrefetch() {
console.log("serverPrefetch");
},
mounted() {
console.log("mounted");
}
};
</script>
New
serverPrefetch
is great to prefetch data on server side but the new documentation doesn't include an example for prefetching data on the client.