(newValue)
| 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) { |
no outgoing calls
no test coverage detected
searching dependent graphs…