Skip to content

SSR. Prefetch guard in router.beforeResolve on client don't call #18202

@209

Description

@209

What happened?

Prefetch doesn't call in client

What did you expect to happen?

// quasar client-entry.js

    router.isReady().then(() => {
      // but router.beforeResolve call before addPreFetchHooks
      addPreFetchHooks({ router, store, publicPath })
      app.mount('#q-app')
    })

addPreFetchHooks in client-prefetch.js adding next :

   router.beforeResolve((to, from, next) => {
     // don't call
     ....
   })

And quasar guard don't call...

Reproduction URL

https://stackblitz.com/edit/quasarframework-stackblitz-templates-dukolyes?file=src%2FApp.vue

How to reproduce?

  1. Go to link
  2. quasar dev -m ssr
  3. see console

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)

Platforms/Browsers

No response

Quasar info output

Relevant log output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions