ot;</code> since <code>state.users</code> is an empty array before the request completes. Then, once data is available, the UI redraws and a list of user ids is shown.</p>
<p>RouteResolvers can be used as a mechanism to preload data before rendering a component in order to avoid UI flickering and thus bypassing the need for a loading indicator:</p>
<pre><code class="language-javascript">var state = {
    users: [],
    loadUsers: function() {
        return m.request(&quot;/api/v1/users&quot;).then(function