Skip to content

Commit 5228d83

Browse files
committed
fix(useSchemaOrg): aggressively setupDOM
1 parent 2734113 commit 5228d83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/schema-org/runtime/composables/useSchemaOrg.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getCurrentInstance, nextTick, onBeforeUnmount, onMounted, watch } from 'vue-demi'
1+
import { getCurrentInstance, nextTick, onBeforeUnmount, onMounted, watch } from 'vue'
22
import { injectSchemaOrg } from '#vueuse/schema-org/runtime'
33

44
let vmGlobalUid = -1
@@ -41,6 +41,7 @@ export function useSchemaOrg(input: any) {
4141
// CSR Mode will need to manually trigger the schema to re-generate
4242
onMounted(() => {
4343
client.generateSchema()
44+
client.setupDOM()
4445
})
4546

4647
onBeforeUnmount(() => {

0 commit comments

Comments
 (0)