@pablobm wrote:
Hello there. I’m doing some research of the bowels of Ember, and I have a question about how
@ember/routing/route
implementsstore
.I understand this implementation is normally expected to be overriden by Ember Data or what have you, and that it’s considered legacy, but still I’d like to know about the history of it.
So specifically: why this line? https://github.com/emberjs/ember.js/blob/f73d8440d19cf86a10c61ddb89d45881acfcf974/packages/@ember/-internals/routing/lib/system/route.js#L1687
modelClass = modelClass.class;
From what I can see, all it achieves is to throw the container out of the window (as the result of
.class
won’t have access to the container), which limits the usefulness of the result at all, if I understand correctly.Thank you!
Posts: 1
Participants: 1