mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-22 15:15:34 +00:00
async and Suspense
This commit is contained in:
10
src/App.vue
10
src/App.vue
@@ -1,9 +1,15 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
|
||||
<h1>VMail Inbox</h1>
|
||||
|
||||
<MailTable />
|
||||
<Suspense>
|
||||
<template #default>
|
||||
<MailTable />
|
||||
</template>
|
||||
<template #fallback>
|
||||
Loading...
|
||||
</template>
|
||||
</Suspense>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user