(newPartialState: TState)
| 19 | } |
| 20 | |
| 21 | public setState(newPartialState: TState) { |
| 22 | m.startComputation(); |
| 23 | for (let key in newPartialState) { |
| 24 | if (newPartialState.hasOwnProperty(key)) { |
| 25 | this.state[key] = newPartialState[key]; |
| 26 | } |
| 27 | } |
| 28 | m.endComputation(); |
| 29 | } |
| 30 | |
| 31 | public ref(name: string) { |
| 32 | return { |
nothing calls this directly
no outgoing calls
no test coverage detected