-
Notifications
You must be signed in to change notification settings - Fork 32
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
assert-must-preload
compatible with loadAll()
?
#66
Comments
assert-must-preload
compatible with loadAll()
assert-must-preload
compatible with loadAll()
?
Thanks! This is a bug. Right now As a way to get you unstuck today, I'd drop
The only downside to this approach is that it will fail when the owner is null. If you run into that let me know and I can give you some pointers. |
@ryanto thanks. I have to test that tonight. Regarding the |
Hey @kumy, this fell off my radar, but it should be fixed now. It's merged into master and released in Let me know how it goes, happy to make more changes to our relationship tracking based on your feedback! |
I'm wondering if
assert-must-preload
component is compatible with theloadAll()
function.I have a component template such as:
Route template for details:
My route for visualizing just one item is as follow:
If I wish to display one GeoKret details it's working fine, but if I wish to display a list of GeoKrety, it fails with error
Error: Assertion Failed: You tried to render a component:geokret-details that accesses relationships off of a geokret, but that model didn't have all of its required relationships preloaded ('owner'). Please make sure to preload the association. [ember-data-storefront]
Route template for list:
Does someone see what I'm doing wrong?
I've pushed all my code there in case someone need to look deeper.
Thanks!
The text was updated successfully, but these errors were encountered: