page layout's function delayed execution

  • 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

  • Admin

    @gowthamsanj use preFetch and return a Promise in it.

Log in to reply