We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
onContentUpdated
1 parent c46e4b7 commit 0db269aCopy full SHA for 0db269a
src/client/app/components/Content.ts
@@ -1,4 +1,4 @@
1
-import { defineComponent, h } from 'vue'
+import { defineComponent, h, watch } from 'vue'
2
import { useData, useRoute } from 'vitepress'
3
import { contentUpdatedCallbacks } from '../utils'
4
@@ -11,7 +11,8 @@ export const Content = defineComponent({
11
},
12
setup(props) {
13
const route = useRoute()
14
- const { site } = useData()
+ const { frontmatter, site } = useData()
15
+ watch(frontmatter, runCbs, { deep: true, flush: 'post' })
16
return () =>
17
h(
18
props.as,
0 commit comments