Skip to content

Commit 8dd0b3e

Browse files
committedNov 20, 2024·
feat(nuxt): add client-only
1 parent a302447 commit 8dd0b3e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ pnpm build:dev
111111
```html
112112
<!-- App.vue -->
113113
<template>
114-
<Toaster />
114+
<ClientOnly>
115+
<Toaster />
116+
</ClientOnly>
115117
<button @click="() => toast('My first toast')">Render a toast</button>
116118
</template>
117119

‎playground/app.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<template>
22
<div>
3-
<Toaster position="top-center" />
3+
<ClientOnly>
4+
<Toaster position="top-center" />
5+
</ClientOnly>
46

57
<button @click="$toast('Render a toast')">Render a toast</button>
68
</div>

0 commit comments

Comments
 (0)
Please sign in to comment.