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

Function createPropItem

packages/frontend/src/inspector.tsx:68–80  ·  view source on GitHub ↗
(
    property: string,
    initValue: decode.DecodedValue,
    initGetterState: debug.PropGetterState | false,
)

Source from the content-addressed store, hash-verified

66}
67
68function createPropItem(
69 property: string,
70 initValue: decode.DecodedValue,
71 initGetterState: debug.PropGetterState | false,
72): Inspector.Prop {
73 const valueItem = createValueItem(`${debug.ValueItemType.Prop}:${property}`, initValue)
74 const [getter, setGetter] = s.createSignal(initGetterState)
75 return {
76 item: valueItem,
77 getter: getter,
78 setGetter: setGetter as s.Setter<debug.PropGetterState>,
79 }
80}
81
82/**
83 * Props — add/remove changed prop keys of an proxy object

Callers 2

updateProxyPropsFunction · 0.85
createInspectorFunction · 0.85

Calls 1

createValueItemFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…