Skip to content

Commit 5a89de4

Browse files
committed
Docs: Wrap VueAnnouncer in the ClientOnly component
1 parent 705f5db commit 5a89de4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/.vuepress/components/GlobalLayout.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<template>
22
<div id="global-layout">
3-
<VueAnnouncer />
3+
<ClientOnly>
4+
<VueAnnouncer />
5+
</ClientOnly>
46
<component :is="layout"/>
57
</div>
68
</template>

docs/demos/vuepress.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ Ok, now just insert the component `<VueAnnouncer />` in your main layout.
1717
```vue
1818
<template>
1919
<div>
20-
<VueAnnouncer /> <!-- You can place it anywhere in your application -->
20+
<ClientOnly>
21+
<VueAnnouncer /> <!-- You can place it anywhere in your application -->
22+
</ClientOnly>
2123
...
2224
</div>
2325
</template>

0 commit comments

Comments
 (0)