Quasar preFetch vs vuejs serverPrefetch



  • So what’s the difference from the quasar preFetch function and the vuejs serverPrefetch added in in 2.6.0+? It seems the vue one has access to the “this” context of the component? Was this added after quasar ssr and should quasar prefetch not be used/deprecated or is there something that it provides that the vuejs one doesn’t?

    The docs don’t talk about this or why to go with one over the other. Currently it sounds like the vue one is superior as it has the additional access to the “this” context of the component. If you ever accidentally use “this” in the quasar preFetch that prop is directly saved on the server. When you refresh the page it still has the old prop, and could be dangerous to ever do that.


Log in to reply