️ (async component) define as much async components as possible

This commit is contained in:
Julien Calixte
2023-07-18 00:13:19 +02:00
parent 1ca4730096
commit 0cbbfd7273
2 changed files with 72 additions and 76 deletions

View File

@@ -1,5 +1,4 @@
<script lang="ts" setup>
import LinkedNotes from '@/components/LinkedNotes.vue'
import { useFile } from '@/hooks/useFile.hook'
import { useImages } from '@/hooks/useImages.hook'
import { useLinks } from '@/hooks/useLinks.hook'
@@ -9,7 +8,11 @@ import { useTitleNotes } from '@/hooks/useTitleNotes.hook'
import { useUserRepoStore } from '@/modules/repo/store/userRepo.store'
import { filenameToNoteTitle } from '@/utils/noteTitle'
import { generateTweets } from '@/utils/twitter'
import { computed, nextTick, watch } from 'vue'
import { computed, defineAsyncComponent, nextTick, watch } from 'vue'
const LinkedNotes = defineAsyncComponent(
() => import('@/components/LinkedNotes.vue')
)
const props = defineProps<{
user: string