I’ve come across a kind of weird caching (I guess) issue.
I’ve a page which uses a headless CMS with content blocks. One of those blocks renders markdown:
<template>
<div v-for="block in content" :key="block.id">
<content-markdown
v-if="block.__component === 'content.text'"
:md="block.text"
/>
</div>
</template>
I wanted to utilise this.renderTemplate in serverPrefetch.
async serverPrefetch() {
this.renderedMd = await this.renderTemplate(this.md, 'md')
},
<template>
<div class="md-content" v-html="renderedMd" />
</template>
This, though, leads to a problem, as suddenly all paragraphs on the page show the same content.

The shown content is the one of the last block. So somehow it overwrites everything that has been rendered before.
If I use a synchronous function directly in the template this issue does not occur.
I use @11ty/eleventy-plugin-vue@1.0.0-canary.8 with @11ty/eleventy@1.0.1
Any idea what happens here?
I’ve come across a kind of weird caching (I guess) issue.
I’ve a page which uses a headless CMS with content blocks. One of those blocks renders markdown:
I wanted to utilise
this.renderTemplateinserverPrefetch.This, though, leads to a problem, as suddenly all paragraphs on the page show the same content.
The shown content is the one of the last block. So somehow it overwrites everything that has been rendered before.
If I use a synchronous function directly in the template this issue does not occur.
I use
@11ty/eleventy-plugin-vue@1.0.0-canary.8with@11ty/eleventy@1.0.1Any idea what happens here?