-
-
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
Manually reload async belongsTo relationship #2380
Comments
We hit this today as well. Reloading after resolving the relationship does not use the belongsTo link. |
I still opt for a reloadRelationship function. So instead of calling reload on the relationship itself, we should be able to call reload from it's parent which will take the context of the parent into account. This way, reloading can check for links. |
We definitely want to support this, here is a RFC that tracks this emberjs/rfcs#57 |
Thanks, will keep an eye on it! |
I think this issue can be closed since an initial implementation of references has been merged into |
I agree with @pangratz. Keep an eye out for references work. |
It would be nice to have an option to manually reload a belongsTo relationship the same way we can reload a hasMany relationship (
model.get('relationship').reload()
).Currently we'll have to do it this way:
The problem with this is that we first have to load it before we can reload it which may cause loading it twice.
(Also reloading it this way does not work when the belongsTo has a link.)
The text was updated successfully, but these errors were encountered: