Skip to content

Shell: how to wait for initial content from async method on app start. #28418

Answered by asi-evin
SergTomcat asked this question in Q&A

You must be logged in to vote

I don't think we have control over when create window gets called. Creating a dummy page isn't terrible, no different than creating a login page that gets skipped if you're already logged in. You're probably looking at two scenarios you need to handle here:

  1. Database loads first: In which case, create your shell as normal.
  2. Window created first: In which case, create shell with loading page. When the database load is finished, populate your shell content and remove the loading page.

Replies: 1 comment 2 replies

You must be logged in to vote
2 replies
@SergTomcat

@asi-evin

Answer selected by SergTomcat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants