Open Ni55aN opened 1 year ago
There is workaround using ContentRenderer
<template>
<ContentRenderer :value="data" />
</template>
<script>
import { defineComponent } from 'vue';
export default defineComponent({
props: ['path'],
async setup(props) {
const { data } = await useAsyncData(props.path, () => queryContent(props.path).findOne());
return {
data,
};
},
});
</script>
Environment
Linux
v16.14.2
3.3.2
2.3.2
npm@7.17.0
vite
modules
@nuxt/content@2.5.2
-
Reproduction
A
link Expected result: three A heading Actual result: three A heading ✔B
link Expected result: three B heading Actual result: three B heading ✔A
link Expected result: three A heading Actual result: first heading is B ❌B
link Expected result: three B heading Actual result: first heading is A ❌Describe the bug
ContentDoc
fails to display new content based on an updated dynamic path (which depends on the route) after revisiting a link that was previously visited. Only after clicking on a different link it displays the new content, but for previous link. As a result, it lags behind by one step.Additional context
No response
Logs
No response