[0.17 beta] Using preFetch() in App.vue
See original GitHub issueSoftware version
Quasar:0.17.0-beta.12 OS: Windows 10 Node:10.2.1 NPM:6.1.0 Browsers:Google Chrome Version 67.0.3396.99 (Official Build) (64-bit) iOS: Android: Any other software related to your bug:
JsFiddle (for Quasar v0.15+ only)
What did you get as the error?
No error
What were you expecting?
Expect to get preFetch()
to work in App.vue
What steps did you take, to get the error?
I’m using the App.vue
created
life cycle hook to dispatch the cross-app actions like:
this.$store.dispatch("fetchCurrentUser")
this.$store.dispatch("getAllCategories")
this.$store.dispatch("getAllBrands")
this.$store.dispatch("getAllSizes")
this.$store.dispatch("getAllColors")
Now I want to move these actions to the preFetch()
function but it doesn’t work in App.vue
! what should I do please?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Lazy Loading Individual Vue Components and Prefetching
The purpose of lazy loading is to postpone downloading parts of your application that are not needed by the user on the initial...
Read more >Upgrade Guide - Quasar Framework
How to upgrade Quasar from older versions to the latest one.
Read more >Quasar & Quasar CLI v0.17 aka SSR - Developer Preview
Vue component new instantiation method: preFetch() support (for all Quasar modes, not just SSR) – works great along with the new LoadingBar ...
Read more >API Reference - Vue.js
Application · createApp() · createSSRApp() · app.mount() · app.unmount() · app.provide() · app.component() · app.directive() · app.use() ...
Read more >Nuxt 3 Beta: What's New and How to Get Started - SitePoint
You can build your app only with app.vue as a main component and other components placed in the components/ folder. If that's the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Pushed fix in CLI. Will be available in next beta.
I see your point now. Thanks for reporting!