feat: render app shell with ssr to improve loading experience (#448)

This commit is contained in:
Daniel Roe 2022-12-17 16:55:29 +00:00 committed by GitHub
parent b545efeacc
commit 9395b7031e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 169 additions and 127 deletions

View file

@ -1,7 +1,7 @@
<script setup lang="ts">
setupI18n()
setupLogging()
setupPageHeader()
await setupI18n()
provideGlobalCommands()
// We want to trigger rerendering the page when account changes
@ -11,7 +11,6 @@ const key = computed(() => `${currentServer.value}:${currentUser.value?.account.
<template>
<NuxtLoadingIndicator color="repeating-linear-gradient(to right,var(--c-primary) 0%,var(--c-primary-active) 100%)" />
<NuxtLayout :key="key">
<NuxtPage />
<NuxtPage v-if="isMastoInitialised" />
</NuxtLayout>
<TeleportTarget id="teleport-end" />
</template>