perf: faster app without defineAsync
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { useAlertStore } from "@/stores/alerts";
|
||||
import { defineAsyncComponent } from "vue";
|
||||
const AlertItem = defineAsyncComponent(
|
||||
() => import("@/components/AlertItem.vue"),
|
||||
);
|
||||
import AlertItem from "@/components/AlertItem.vue";
|
||||
|
||||
const { alerts } = useAlertStore();
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user