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 ebcab8a commit 009ef01Copy full SHA for 009ef01
example/App.vue
@@ -15,14 +15,17 @@
15
</template>
16
17
<script>
18
-import { loadable, mapLoadableActions } from '../src/vue-loadable'
+import { mapActions } from 'vuex';
19
+import { loadable, mapLoadableMethods } from '../src/vue-loadable'
20
21
const sleep = (time) => new Promise((resolve) => setTimeout(resolve, time))
22
23
export default {
24
name: 'App',
25
methods: {
- ...mapLoadableActions(['w']),
26
+ ...mapLoadableMethods(
27
+ mapActions(['w'])
28
+ ),
29
30
x: loadable(async function () {
31
await sleep(3 * 1000)
0 commit comments