(data)
| 71 | } |
| 72 | |
| 73 | handleData (data) { |
| 74 | // old dataSource api |
| 75 | if (typeof data === 'function') { |
| 76 | this.setState({ data: undefined, fetchStatus: FETCH_PENDING }); |
| 77 | data.then((res) => { |
| 78 | if (this._isMounted) { |
| 79 | this.setState({ data: clone(res) }); |
| 80 | } |
| 81 | })(); |
| 82 | } else { |
| 83 | this.setState({ data: clone(data), fetchStatus: FETCH_SUCCESS }); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | getSelected () { |
| 88 | return this.component.getSelected(...arguments); |
no test coverage detected