Closed BryanCrotaz closed 2 years ago
So, I like where this is going, but the real implementation is here: https://github.com/validated-changeset/validated-changeset is there a reason you opted to only update this library? or is there a PR I'm missing? :thinking:
I didn't realise. But looking at it, validated-changeset
is supposed to be independent of Ember. So it shouldn't use Tracking for example. I don't think it's possible to pull tracking out of my design. I was aiming for a really clean and simple design that gets rid of a ton of cruft.
validated-changeset is supposed to be independent of Ember
is true -- but it's also where most of the complexity comes in.
is the goal to eliminate the need for validated-changeset?
and fwiw, I think it is possible to a better native proxy design with validated-changeset and provide deep reactivity as well -- but, I want to make sure I know what your goals are?
My goals are to have ember-changes et working for deep nesting without get and set. If that means submitting to validated- changeset instead then that's fine by me
Ah ok, we can probably do even less work then. Thanks for clarifying!
closing in favour of https://github.com/validated-changeset/validated-changeset/pull/150
Work in progress. Using existing test suite plus some more edge cases and preserving public API.
Enables developer to use normal JS semantics:
Really useful for having nested components:
PersonForm doesn't have to know that this is a changeset. The save and rollback can be at a higher level.