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

    page layout's function delayed execution

    Framework
    2
    2
    86
    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.
    • G
      gowthamsanj last edited by

      In pagelayout ‘A’ I have invoked one API and the data from the API is needed for all the pages comes under the pagelayout ‘A’, And these data were stored in the Local storage for further access.
      Problem: When I redirect the user from login page to the main page for the first time, The API function is delayed on the layout and the Pages are invoked before the API call gets complete, So I am getting the null/undefined values on the pages

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        @gowthamsanj use preFetch and return a Promise in it.

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