How to use two different pages for different modules in jira custom UI app?

hai @linklefebvre Thanks for your reply. I used the method mentioned in the below link to complete my requirements.

But Now i am facing some other problem. I invoke a method from app.js and wrote resolver function for that function in src/index.js. I need to render components based on the return value from resolver function.
But resolver function took too much of time(5 to 6 sec) to return the value. In between that time all the code inside app.js is executed. So based on the return value from the resolver function, i can’t render the pages correctly. is there any way to do it efficiently?