Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Substate loading/error not working #427

Closed
ghost opened this issue Jan 19, 2014 · 8 comments
Closed

Substate loading/error not working #427

ghost opened this issue Jan 19, 2014 · 8 comments

Comments

@ghost
Copy link

ghost commented Jan 19, 2014

/router.js

Router.map(function() {
  this.resource('dashboard', { path: '/' }, function() {
    this.route('settings');
  });
});

/routes/dashboard/index.js

export default Ember.Route.extend({
  model: function() {
    return new Ember.RSVP.Promise(function(resolve, reject) {
      Ember.run.later(function() {
        resolve();
      }, 1000);
    });
  }
});

/templates/dashboard/loading.hbs

Dashboard Index Loading...

When I transition to 'dashboard.index' route, the substate loading template should display into the outlet of dashboard. But, it doesn't work.

I tried the same code without ember-app-kit, then it works.

Any help?

@rwjblue
Copy link
Collaborator

rwjblue commented Jan 19, 2014

@kindalabs - This may be an issue with the resolver. See ember-cli/ember-resolver#13. Does this seem to be the same issue?

@rwjblue
Copy link
Collaborator

rwjblue commented Jan 20, 2014

See detailed response here: ember-cli/ember-resolver#13 (comment), but this is an issue with the container not normalizing things properly. An update to Ember 1.4.0-beta.2 will resolve the issue.

@rwjblue rwjblue closed this as completed Jan 20, 2014
@ghost
Copy link
Author

ghost commented Jan 20, 2014

@rjackson Thank you! It was resolved by upgrading to Ember 1.4.0-beta.2.

@rwjblue
Copy link
Collaborator

rwjblue commented Jan 20, 2014

@kindalabs - Awesome, glad it worked.

@stefanpenner
Copy link
Owner

Fantastic :)

@Ghostavio
Copy link

I'm having this problem, but not with loading substate, only with error, it's impossible to to get to the error template or router

@fsmanuel
Copy link
Collaborator

@Ghostavio have you looked into #584? Are you on application route level?

@Ghostavio
Copy link

Yes I am, so I can't handle all the errors in the application level? What's the recommended way to handle errors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants