Problem
After upgrading to the newest ember.js I get this error:
Uncaught Error: assertion failed: Could not find state for path: "loading"
Looking at the framework code, it seems that ember wants to route to a 'loading' route until the ember data promises return. I didn't see any documentation about a 'loading' route, so just tried adding one like this:
loading: Ember.Route.extend({
}),
which results in the error:
Uncaught Error: assertion failed: Loading state should not be a route
Clues
- Running build from master (commit
693c8185fbda70df523bb60d21f3dc6d9d94b018
) - Using the old router build (
ember-old-router.js
) so I can upgrade without rewriting my router - Error only happens when I navigate directly to the URL. It does not happen when I route from a sibling route.
Question
Should I be defining a loading route somewhere? If so, what is the syntax? If not, how can I prevent this error?