-
Notifications
You must be signed in to change notification settings - Fork 40
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
Relationships without data #2
Comments
@eiktyrner, thank you for the feedback. Before diving into the implementation, I would like to discuss more business side of the issue. Are we talking about lazy loading here? We know that |
@yury-dymov That is indeed one case where this could happen. The point is that this library needs to follow the whole spec before it's usable, regardless of business case. |
@eiktyrner, I agree with you regarding the spec. The point here is that I need to understand exact business cases for the optimal implementation. Well, for json-api-normalizer it would be easy but for redux-object there would be no "easy fix" as far as I can see. |
Should be resolved via 9eba58b, please check. redux-object will not support lazy loading as for now. I need to think regarding a good API for such occasion. Update: implementation details: https://github.com/yury-dymov/json-api-normalizer#lazy-loading |
Thanks for the quick help, that seems to solve my issue. |
This throws
Cannot read property 'id' of undefined
While this works.
It seems that a data object is assumed for each relationship even though the spec says it's not required.
The text was updated successfully, but these errors were encountered: