`Maximum call stack size exceeded` error when accessing relationship
See original GitHub issueWhen I try to access a property of a belongs to relationship of a changeset object, I get a Maximum call stack size exceeded error. The error comes out wether you use the changeset-get helper or not.
Example:
{{this.changeset.belongsToRelationship.name}}
or
{{changeset-get this.changeset "belongsToRelationship.name"}}
The changeset object was created using
this.set('changeset', new Changeset(this.model));
Here’s what the error looks like:

From what I was able to understand, I’m getting into an infinite loop around the safeGet here on the validated-changeset package: https://github.com/validated-changeset/validated-changeset/blob/e1dd9a65d19fd1e269b48049855421d32a041cfd/src/utils/object-tree-node.ts#L49
The key that it loops in is __CUSTOM_TAG_FOR__ember159149944767897589162650__.
I tried to PR a failing test, but it seemed like relationships are pretty will tested in ember-changeset, so I’m a bit lost now. 😦
I’m using version 3.5.5, but this also happened with every other 3.X version.
Using ember and ember data 3.18.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)

Top Related StackOverflow Question
@snewcomer I was able to reproduce this in a failing test this time: #504
I can confirm that it is working now. Thanks a lot @snewcomer !