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.
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 ensurevalidate()
can be called on render in Ember. Moreover, ensuring we only write toCHANGES
is a much more involved effort. This PR does not attempt to fix.ref https://github.com/poteto/ember-changeset/issues/602