Skip to content

Stacklevel too deep during deepMerge (when calling changeset.unexecute()) #652

Open
@sly7-7

Description

@sly7-7

Version

[email protected]

Test Case

I've created a test here: #653

Steps to reproduce

  • Create a changeset from an ember-data model with sync belongsTo
  • Change this belongsTo
  • call changeset.execute()
  • call changeset.unexecute() => exception

Expected Behavior

I was expecting the changeset to have the previous belongsTo model associated.

Actual Behavior

It seems like ember-changeset should work well with Ember-Data, but I think I do somehting wrong, because it crashes during unexecute, when it encounters a belongsTo relation.

Error: Unable to 'mergeDeep' with your data. Are you trying to merge two ember-data objects? Please file an issue with ember-changeset.
    at Proxy.mergeDeep (merge-deep.js:161:1)
    at Proxy.unexecute (validated-changeset.es5.js:409:155)

but I don't do any merge by myself

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions