()
| 148 | } |
| 149 | |
| 150 | componentDidMount() { |
| 151 | this.mounted = true |
| 152 | if (this.props.promise || !this.state.initialValue) { |
| 153 | this.load() |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | componentDidUpdate(prevProps: Props) { |
| 158 | const { watch, watchFn = defaultOptions.watchFn, promise, promiseFn } = this.props |