Skip to content

isDirty/isPristine don’t trigger computed property changes #164

Open
@PVSAmulya

Description

@PVSAmulya

After updating ember-changeset-validations from 2.2.1 to 3.16.0, the computed properties that are dependent on changeset.isDirty are not updating when changeset.isDirty changes. This doesn't appear to be an issue for the other computed properties. Properties on the changeset that contain modified values trigger computed properties as expected.

Here is the project that recreates the issue. isDirty/isPristine computed properties do not get triggered. firstName property does get triggered as expected.

Github Link: https://github.com/PVSAmulya/form-project

When using ember-changeset 3.15.0 with ember-changeset-validations 2.2.1 changeset.isDirty computed property works as expected. I debugged this issue to validated-changeset.

There was a similar issue in ember-changeset for isValid/isInvalid that has been resolved.
adopted-ember-addons/ember-changeset#455

Specific comment that is related to isDirty and isPristine on the PR that resolves the above issue.
adopted-ember-addons/ember-changeset#509 (comment)

Screen Shot 2022-03-03 at 1 07 28 PM

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