From e97b8133decdcd392a76f39d9707c872e303d6c2 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Thu, 23 Nov 2023 17:06:43 +0100 Subject: [PATCH] fix hydration error, ClientOnly component --- src/components/ClientOnly.vue | 13 +++++++++++++ src/pages/app/index.page.vue | 14 +++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 src/components/ClientOnly.vue diff --git a/src/components/ClientOnly.vue b/src/components/ClientOnly.vue new file mode 100644 index 0000000..10ebb83 --- /dev/null +++ b/src/components/ClientOnly.vue @@ -0,0 +1,13 @@ + + + diff --git a/src/pages/app/index.page.vue b/src/pages/app/index.page.vue index de2ec8b..1621b0c 100644 --- a/src/pages/app/index.page.vue +++ b/src/pages/app/index.page.vue @@ -14,22 +14,30 @@

The Counter

- The current value of the counter is: {{ counter.count }} + The current value of the counter is: + {{ counter.count }}

Increase the Counter

- {{ counter.count }} + + {{ counter.count }} +

Reset the Counter

- {{ counter.count }} + + {{ counter.count }} +