solidjs-community/solid-primitives

`captureStoreUpdates` — return the full `path` to the property that changed

開放

#576 建立於 2024年2月28日

 (2 則留言) (0 個反應) (0 位負責人)TypeScript (153 個分叉)auto 404
enhancementhelp wanted

倉庫指標

星標
 (1,541 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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"].

貢獻者指南