(partialState)
| 147 | } |
| 148 | |
| 149 | set(partialState) { |
| 150 | const prevState = this.state |
| 151 | this.state = { ...this.state, ...partialState } |
| 152 | this.notify(prevState) |
| 153 | } |
| 154 | |
| 155 | notify(prevState) { |
| 156 | this.listeners.forEach(listener => listener(this.state, prevState)) |
no test coverage detected