« All deprecation guides
Deprecation Guide for Store will no longer extend EmberObject in 6.0
until: 6.0
id: ember-data:deprecate-store-extends-ember-object
The Store class extending from EmberObject is deprecated and the class will no longer extend from EmberObject in 6.0.
Please remove usage of EmberObject APIs in your Store class.
To mark the class as no longer extending from EmberObject, in ember-cli-build.js set the following config:
const app = new EmberApp(defaults, {
emberData: {
deprecations: {
DEPRECATE_STORE_EXTENDS_EMBER_OBJECT: false
}
}
});
If you are unsure whether your Store class uses EmberObject APIs, set this
config and uses of those APIs will throw exceptions. The most common API that
may have been used is Store.extend({...
.
This deprecation is from RFC #1026.