docs: try to fix the ContentRenderer error when changing props

This commit is contained in:
Benjamin Canac
2023-09-08 17:58:37 +02:00
parent ef7d3ce549
commit a43c68c501

View File

@@ -205,7 +205,7 @@ function renderObject (obj: any) {
return obj return obj
} }
const { data: ast } = await useAsyncData(`${name}-ast-${JSON.stringify(props)}`, () => transformContent('content:_markdown.md', code.value, { const { data: ast } = await useAsyncData(`${name}-ast-${JSON.stringify(componentProps)}`, () => transformContent('content:_markdown.md', code.value, {
highlight: { highlight: {
theme: { theme: {
light: 'material-theme-lighter', light: 'material-theme-lighter',