Open BantamTech opened 3 years ago
@BantamTech I now know why this happens! I followed this tutorial: https://developers.cloudflare.com/pages/tutorials/build-a-blog-using-nuxt-and-sanity
In the tutorial it states you should do this:
<block-content
v-for="child in post.body"
:key="child._id"
:blocks="child"
/>
But in reality, this is the proper way of doing it:
<block-content :blocks="post.body" />
The reason for multiple parts is that with the v-for loop, the component parser doesn't know about the following list items, and there is no way for it to group items into one element.
Hope this is the same issue you were facing and that this issue can be closed :)
Hi there,
The issue i'm having is exactly the same as this one from block-content-to-react, so I'll just quote it.
https://github.com/sanity-io/block-content-to-react/issues/23
Any help would be much appreciated, thank you!