-
-
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
Sideposting with lid leaves relationship in invalid state #7127
Comments
Each position in which a ResourceIdentifierObject occurs in the payload will need to have the
In the interest of completeness, the |
Local:ID Proposal https://github.com/json-api/json-api/pull/1436/files |
There are ergonomics here that we want to improve in the long term, but currently due to the primary (and only) method of updating the cache being |
When I've tried to make a minimal test case to reproduce the issue I faced in my app I first tried to use store.push() and I didn't see the issue with relationships. Only when I mocked Adapter and Serializer and called save, the issue appeared. I tried to add lid to the relationship as you suggested and it didn't help. Please see the updated PR. |
I've also noticed that if I remove id from relationship and leave only the |
Closed by #7126 |
#7126 adds a test illustrating this issue.
First assertion fails with error:
Second assertion fails with error:
The text was updated successfully, but these errors were encountered: