How to render view before API response is ready?


#1

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


#2

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.