[Vuejs]-Vue v-for directive causing unexpected additional components

0👍

The issue appeared to be my using a v-for directive on a <NuxtLink> tag. The new code below works:

<div v-for="post in recentBlogPosts" :key="post._id">
  <NuxtLink :to="`blog/${post.slug}`">
    <BlogPostShort class="blog-post-short"
      :title="post.title"
      :createdDate="post.created"
      :updatedDate="post.updated"
      :excerpt="post.excerpt"
      :tags="post.tags" />
  </NuxtLink>
</div>

Leave a comment