« All deprecation guides

Deprecation Guide for Deprecate Instantiate Record Args

until: 5.0
id: ember-data:deprecate-instantiate-record-args

Deprecates using the former 3rd and 4th arguments to Store.instantiateRecord which are now available as properties on the store.

Before:

{
  instantiateRecord(identifier, createArgs, recordDataFor, notifications) {
    const cache = recordDataFor(identifier);
  }
}

After:

{
  instantiateRecord(identifier, createArgs) {
     const { cache, notifications } = this;
  }
}