-
-
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
Place store on Ember.Route to maintain implicit record loading #7765
Conversation
4d4d9be
to
3a69d25
Compare
3f08041
to
ec86df7
Compare
@@ -46,6 +51,22 @@ function initializeStore(application) { | |||
} | |||
} | |||
|
|||
// Implicit injection was removed. This is a replacement for Ember Route implicit store | |||
// https://github.com/emberjs/rfcs/pull/774 | |||
Object.defineProperty(Route, 'store', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would define a property on the Route
class itself, right? Why not use reopen
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You were right. I has thought defineProperty and reopen would be equivalent but turns out I was wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing this has something to do with EmberObject. But overall I was trying the other way to avoid the reopen
deprecation
Once we fix the implicit injection deprecation for 3.28 do we still need to do this? |
0770a28
to
25af494
Compare
ref emberjs/rfcs#774
Fix #7744