You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We were never able to fix this because there isn't a good way to deal with creating an extra extend just-in-time. That said the need for doing so has greatly diminished with time, and the lack of reports indicates that we've mostly eliminated the footguns. Internally I don't believe we use Model.modelName anywhere at this point. Even adapters and serializers are moving away from it as we now provide them a schema wrapper.
For polymorphism, we still do have a check that walks the prototype chain, but it uses instanceof now. (and we'll be deleting the check soon because we've shown it to be unnecessary).
Going to close this as I don't think there's any further action for us to take directly on this issue.
With double extend off in new ember
Ember.ENV.MODEL_FACTORY_INJECTIONS
isn't accurate, and most likely is causing issues.Most likely:
data/addon/-debug/index.js
Lines 37 to 39 in e6cb564
And likely others:
https://github.com/emberjs/data/search?utf8=%E2%9C%93&q=MODEL_FACTORY_INJECTIONS&type=
We should review and audit each occurrence, and address issues that arise.
Plan
assertPolymorphicType
data/addon/-debug/index.js
Lines 37 to 39 in e6cb564
The text was updated successfully, but these errors were encountered: