-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redefining DS.Model attributes #3906
Comments
I think these are the only reserved properties at the moment:
|
I think a warning would be good. I could see |
Ember Data tried to add a warning around the state properties like ( |
I was suggesting just a console warning rather than an assert. After all, some properties can be safely or usefully overridden ( |
There are currently no plans on separating user properties from reserved/ED properties. An RFC proposing a solution would be welcomed! |
|
In #3893 we found someone was accidentally overwriting DS.Model.errors in an extend block. It's also possible to overwrite other attributes (e.g.
isLoading
,hasDirtyAttributes
) which can cause problem.Is there a way for us to guard against these redefinitions, or display a warning in the console?
The text was updated successfully, but these errors were encountered: