MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / observeStoreNode

Function observeStoreNode

packages/debugger/src/inspector/store.ts:51–58  ·  view source on GitHub ↗
(rootNode: Solid.StoreNode)

Source from the content-addressed store, hash-verified

49}
50
51export function observeStoreNode(rootNode: Solid.StoreNode): () => void {
52 // might still pass in a proxy
53 rootNode = setup.store.unwrap(rootNode)
54 const symbol = Symbol('inspect-store')
55
56 trackStore(rootNode, symbol)
57 return () => untrackStore(rootNode, symbol)
58}
59
60function trackStore(node: Solid.StoreNode, parent: ParentProperty): void {
61 const data = Nodes.get(node)

Callers 1

store.test.tsFile · 0.90

Calls 2

trackStoreFunction · 0.85
untrackStoreFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…