question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[0.17 beta] Using preFetch() in App.vue

See original GitHub issue

Software 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rstoenescucommented, Jul 16, 2018

Pushed fix in CLI. Will be available in next beta.

1reaction
rstoenescucommented, Jul 16, 2018

I see your point now. Thanks for reporting!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found