alpha
Login
or
Join now
danielroe.dev
/
nuxt-vue3-module
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/danielroe/nuxt-vue3-module.
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
docs: add example of suspense
author
Daniel Roe
date
5 years ago
(Jul 20, 2021, 2:39 PM +0100)
commit
c9c36f32
c9c36f32be90446f069be2c56a487643f10310e8
parent
05a134ca
05a134ca5d76b27c7d5e09abe3843629894ccc94
+6
-4
2 changed files
Expand all
Collapse all
Unified
Split
example
components
GlobalComponent.vue
pages
about.vue
+3
-3
example/components/GlobalComponent.vue
View file
Reviewed
···
6
6
7
7
<script>
8
8
export default {
9
9
-
data: () => ({
10
10
-
11
11
-
}),
9
9
+
async setup () {
10
10
+
await new Promise(resolve => setTimeout(resolve, 3000))
11
11
+
}
12
12
}
13
13
</script>
+3
-1
example/pages/about.vue
View file
Reviewed
···
3
3
<RouterLink to="/">
4
4
Home page
5
5
</RouterLink>
6
6
-
<GlobalComponent />
6
6
+
<Suspense>
7
7
+
<GlobalComponent />
8
8
+
</Suspense>
7
9
</template>