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

Function setValue

packages/frontend/src/decode.ts:132–144  ·  view source on GitHub ↗
(newValue)

Source from the content-addressed store, hash-verified

130 get value() {return value()},
131 get length() {return length()},
132 setValue(newValue) {
133 batch(() => {
134 if (typeof newValue === 'number') {
135 setLength(newValue)
136 setActualValue(null)
137 } else {
138 setLength(Array.isArray(newValue)
139 ? newValue.length
140 : Object.keys(newValue).length)
141 setActualValue(newValue as any)
142 }
143 })
144 },
145 })
146
147 if (initValue) {

Callers 1

handleChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…