# Force transition to loading state during setupController

**URL:** <https://discuss.emberjs.com/t/force-transition-to-loading-state-during-setupcontroller/6480>\
**Category:** Uncategorized\
**Created:** [October 12, 2014, 1:41am UTC](https://discuss.emberjs.com/t/force-transition-to-loading-state-during-setupcontroller/6480 "2014-10-12T01:41:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjroebuck](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/cjroebuck/32/15213_2.png) [@cjroebuck](https://discuss.emberjs.com/u/cjroebuck)\
**Post date:** [October 12, 2014, 1:41am UTC](https://discuss.emberjs.com/t/force-transition-to-loading-state-during-setupcontroller/6480/1 "2014-10-12T01:41:49Z")

</div>

I’m refreshing my model in my `show` route, and want to briefly show the loading substate whilst this async behaviour is happening as the screen can take a while to update with the fresh data.

Here’s my setupController function:

```
 #app/routes/events/show.js
 setupController: function(controller,model){
    var self = this;
    this.intermediateTransitionTo('events.loading');
    model.reload().then(function(m){
      controller.set('model',m);
      self.transitionTo('events.show',m);
    });
  }

```

The loading route is entered, but then gets stuck in that loading route forever. How do I transition out of the loading route and back into the `events.show` route.
