Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

currentRoute in preFetch SSR mode get params undefined #8974

Closed
2 of 14 tasks
ysya opened this issue Apr 20, 2021 · 1 comment
Closed
2 of 14 tasks

currentRoute in preFetch SSR mode get params undefined #8974

ysya opened this issue Apr 20, 2021 · 1 comment
Labels

Comments

@ysya
Copy link

ysya commented Apr 20, 2021

Describe the bug
When using object of currentRoute in preFetch will get undefined, need to use currentRoute.value to access object in currentRoute, but currentRoute don't have 'value' in typescript.

To Reproduce
Steps to reproduce the behavior:

  1. Create quasar app in ssr mode and make preFetch: true in quasar.conf.js
  2. add state test and mutations 'setTest' in vuex
  3. use preFetch in vue file and call mutations setTest to set currentRoute.params to state test
  4. console log vuex test onMounted

Expected behavior
don't need to add .value and things in currentRoute should not be undefined

Platform (please complete the following information):
Quasar Version:
@quasar/app Version:
Quasar mode:

  • SPA
  • SSR
  • PWA
  • Electron
  • Cordova
  • Capacitor
  • BEX

Tested on:

  • SPA
  • SSR
  • PWA
  • Electron
  • Cordova
  • Capacitor
  • BEX
@rstoenescu
Copy link
Member

Thanks for reporting!
Fix will be available in "@quasar/app" v3.0.0-beta.16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants