We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb265c0 commit 64f0215Copy full SHA for 64f0215
packages/client/src/components/ClientOnly.ts
@@ -2,6 +2,10 @@ import { defineComponent, onMounted, ref } from 'vue'
2
3
/**
4
* Wrapper component that only renders its content on the client side and skips server side rendering
5
+ *
6
+ * Since vue 3.5, you can try the new `data-allow-mismatch` attribute instead of `<ClientOnly>` component in some cases to avoid hydration mismatch.
7
8
+ * @see https://blog.vuejs.org/posts/vue-3-5#data-allow-mismatch
9
*/
10
export const ClientOnly = defineComponent({
11
name: 'ClientOnly',
0 commit comments