I have a home page what needs API call and depends on the call result different page views, or redirect.
Option #1: API call added as On Page Load
Somehow the page is shown before the API call completes. It causes problems as a user can perform some actions on the page. And overall bad UX as page changes in 3-4 secs after it is loaded once API call completes
Option #2: API call added as Backend query
I tried another way: to add API call as the Backend query , then the page not shown before call completes. But the result of the backend query is not available in the actions on the Page Load to check...
Any suggestions?