Skip to content

changedAttributes and changedRelationships not live. #138

@aars

Description

@aars

In the current implementation, changes are tracked in objects, which computed properties can not track sufficiently. Computed properties like changedAttributes do not update live, and therefor can not be used for changing state in a template for example.

I think we can resolve this by tracking changes in an array, keep a list of keys that have changed (do not match their previous value).

I will send in a PR next week for this, but wanted to give the chance to discuss this in an issue, since I might have overlooked something that either does allow tracking the dirty state of a Resource, or a reason to not list changed keys in an array.

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions