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

Bugfix: validate on render without backtracking Ember assertion #133

Merged
merged 1 commit into from
Jul 15, 2021

Conversation

snewcomer
Copy link
Collaborator

This PR only ensures that on validate we only ever read from an untracked errors cache before writing to a tracked property. While ERRORS (_errors) is not write only yet (ideal state so that tracked properties are only ever written but never read from. This ensure no read-then-write issues in Ember), this PR does ensure validate() can be called on render in Ember. Moreover, ensuring we only write to CHANGES is a much more involved effort. This PR does not attempt to fix.

ref adopted-ember-addons/ember-changeset#602

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant