Skip to content
This repository was archived by the owner on Jan 31, 2019. It is now read-only.

Conversation

@sevab
Copy link

@sevab sevab commented Dec 6, 2016

Fixes #437

unknownProperty(property) {
set(this, property, emberArray());
return get(this, property);
run.once(() => { set(this, property, emberArray()); });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this feels wrong. Adding a runloop entry shouldn't be necessary

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case I'm unsure how to resolve this. At least as a temp solution moving the set into the runloop allows to avoid getting the hard error You modified errors.model twice in a single render from #438 and is also the often-mentioned solution from the original discussion of the Glimmer 2 issue.

Interestingly, the error is only thrown on validation of existing records.

If needed, I can try to reproduce this in a Twiddle.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sevab We try with #445,What do you think?

@rich-poole
Copy link

Any update on this? I've had to use the workaround above but agree it feels wrong.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants