We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b015094 commit 6991fe8Copy full SHA for 6991fe8
example/App.vue
@@ -29,10 +29,12 @@ export default {
29
this.y()
30
}, 'x'),
31
32
- y: loadable(function () {
33
- return sleep(4 * 1000)
34
- .then(() => this.z())
35
- }, 'y'),
+ async y () {
+ this.$setLoading('y')
+ await sleep(4 * 1000)
+ this.$unsetLoading('y')
36
+ this.z()
37
+ },
38
39
z: loadable(() => sleep(3 * 1000), 'z')
40
},
0 commit comments