Skip to content

captureStoreUpdates — return the full path to the property that changed #576

Description

@astoilkov

Describe The Problem To Be Solved

I'm migrating from on-change to using captureStoreUpdates().

When using captureStoreUpdates(), setting a new value mutable.settings.model = model will produce the path: ["settings"]. However, if I replace the entire settings object this will trigger more updates than just updating the settings.model property.

Suggest A Solution

I propose for an option or change in behavior where setting mutable.settings.model produces path: ["settings", "model"].

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions