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

    fetch initial data for app

    Framework
    2
    2
    187
    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.
    • P
      Pedro last edited by

      Hi

      In my apps I need to load some initial data from server.
      At this moment I’m calling the axios functions from ‘mounted’ in ‘MyLayout.vue’, that’s where the app goes after login window.
      I don’t think it’s the best place to do it.
      Is there a proper place to execute these initial functions ? get axios data and other configs needed for the app ? It must be done after the login.
      I saw the boot folder but it is not executed everytime the users does login. Just if he refreshes the page.

      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @Pedro last edited by

        @Pedro mounted is fine or at created, every situation is different, choose which is best in your case.

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