From f04d7ac067a86de9d01ce3d578d7fc51b10a0a41 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 11 Jan 2023 14:50:47 +0000 Subject: [PATCH] fix: defer loading text and server links until hydration (#926) --- components/common/CommonRouteTabs.vue | 2 +- components/nav/NavSide.vue | 6 +++--- components/nav/NavSideItem.vue | 2 +- components/search/SearchWidget.vue | 2 +- nuxt.config.ts | 3 ++- pages/[[server]]/explore.vue | 16 ++++++++-------- pages/[[server]]/explore/index.vue | 2 +- pages/[[server]]/explore/links.vue | 2 +- pages/[[server]]/explore/tags.vue | 2 +- pages/[[server]]/explore/users.vue | 2 +- pages/notifications.vue | 4 ++-- pages/notifications/index.vue | 2 +- pages/notifications/mention.vue | 2 +- public/_redirects | 1 + 14 files changed, 25 insertions(+), 23 deletions(-) diff --git a/components/common/CommonRouteTabs.vue b/components/common/CommonRouteTabs.vue index 75ca06e6..fdd2174a 100644 --- a/components/common/CommonRouteTabs.vue +++ b/components/common/CommonRouteTabs.vue @@ -43,7 +43,7 @@ useCommands(() => command exact-active-class="children:(text-secondary !border-primary !op100 !text-base)" @click="!preventScrollTop && $scrollToTop()" > - {{ option.display }} + {{ option.display || ' ' }}
{{ option.display }} diff --git a/components/nav/NavSide.vue b/components/nav/NavSide.vue index 3e80416d..7b0d48fa 100644 --- a/components/nav/NavSide.vue +++ b/components/nav/NavSide.vue @@ -29,9 +29,9 @@ const { notifications } = useNotifications()