()
| 10 | import {type OnNodeUpdate, type StoreNodeProperty, observeStoreNode, setOnStoreNodeUpdate} from './store.ts' |
| 11 | |
| 12 | const getOwnerStore = () => { |
| 13 | const owner = setup.solid.getOwner() |
| 14 | if (!owner) throw new Error('No owner') |
| 15 | if (!owner.sourceMap) throw new Error('No sourceMap') |
| 16 | const store = owner.sourceMap.find(isSolidStore) |
| 17 | if (!store) throw new Error('No store') |
| 18 | return store.value |
| 19 | } |
| 20 | |
| 21 | const getNodeProp = (node: Solid.StoreNode, prop: string): StoreNodeProperty => |
| 22 | `${getSdtId(unwrap(node), ObjectType.StoreNode)}:${prop}` |
no outgoing calls
no test coverage detected
searching dependent graphs…