Skip to content
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

Can't create fragment #344

Open
pc386 opened this issue Nov 7, 2019 · 0 comments
Open

Can't create fragment #344

pc386 opened this issue Nov 7, 2019 · 0 comments

Comments

@pc386
Copy link

pc386 commented Nov 7, 2019

After upgrading ember/data to 3.12, I am getting this error Uncaught Error: Either an id or a clientId is required as an argument when I try to create a fragment like this store.createFragment('content-conditions-group', { conditionType, content, });

conditionType and content are belongsTo relationships in my fragment. Creating an empty fragment works, but if I try to set the content after creating, I get the same error.

Stack trace:
Uncaught Error: Either an id or a clientId is required as an argument. at RecordDataStoreWrapper.notifyBelongsToChange (-private.js:7291) at BelongsToRelationship.notifyBelongsToChange (-private.js:9747) at BelongsToRelationship.addRecordData (-private.js:9725) at BelongsToRelationship.setRecordData (-private.js:9623) at RecordDataDefault.setDirtyBelongsTo (-private.js:10257) at InternalModel.setDirtyBelongsTo (-private.js:4706) at Class.set (-private.js:323) at ComputedProperty._set (metal.js:3615) at ComputedProperty.setWithSuspend (metal.js:3592) at ComputedProperty.set (metal.js:3563)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant