From 7f0fe97a18339a295b3ac9e26bf3fc48490a60d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Sat, 16 Mar 2024 20:32:57 -0400 Subject: [PATCH] fix(nuxt): enable style extraction for antd components this fixes flashes of unstyled content on initial page load --- app.vue | 12 +++++++----- layouts/default.vue | 8 ++++---- nuxt.config.ts | 4 +++- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/app.vue b/app.vue index 046a716..248694a 100644 --- a/app.vue +++ b/app.vue @@ -3,7 +3,7 @@ await getSession({ force: true }); - const { data } = await useAuth(); + const { data } = useAuth(); let darkBool = ref(data.value?.user?.profile?.nightMode || false); // provide("user", ref(dop?.user || null)); @@ -29,10 +29,12 @@ // });