I use ember-data to retrieve data from the REST API and created an App.Category model. In the "index" state, I get the data as follows:
App.Category.find({type: 1});
It works great. However, when I switch to a new state and call:
App.Category.find({type: 2});
However, I get this error:
Uncaught Error: Attempted to handle event `loadedData` on <App.Category:ember424:1> while in state rootState.loaded.updated.uncommitted. Called with {}
How to fix it?
source share