No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Quasar preFetch vs vuejs serverPrefetch

    Help
    1
    1
    535
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mitchellmonaghan last edited by

      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.

      1 Reply Last reply Reply Quote 6
      • First post
        Last post