How to render view before API response is ready?

Hi, I want to render my view before API response and when API response is there update same view with response.

The route will be in loading state when there is a pending promise in the model hook. If you want the page to render before a promise resolves, it might be better to move the API call to the controller and call it in setupController.