solidjs-community/solid-primitives
`captureStoreUpdates` — return the full `path` to the property that changed
Open
#576 opened on Feb 28, 2024
enhancementhelp wanted
Repository metrics
- Stars
- (1,541 stars)
- PR merge metrics
- (PR metrics pending)
Description
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"].